Future<bool> isEmulator() async { final result = await _channel.invokeMethod<bool>('emulator#isEmulator'); return result ?? false; }