state method
The simulator's boot state (Booted, Shutdown, ...), null when it is unknown or unreadable.
Implementation
Future<String?> state(String udid) async {
try {
final entry = await _deviceEntry(udid.toUpperCase()).timeout(probeLimit);
return entry?.$1['state'] as String?;
} on Object {
return null;
}
}