isPhysicalDevice method

  1. @override
Future<bool?> isPhysicalDevice()
override

Returns true if running on a physical device, false if running on an emulator (Android only).

Implementation

@override
Future<bool?> isPhysicalDevice() async {
  final isPhysicalDevice = await methodChannel.invokeMethod<bool>(
    'isPhysicalDevice',
  );
  return isPhysicalDevice;
}