isPhysicalDevice property

String get isPhysicalDevice

false if the application is running in an emulator, true otherwise. Empty string if not available.

Implementation

// @Deprecated("Use nullable DeviceInfo.data['isPhysicalDevice'] instead.")
static String get isPhysicalDevice =>
    _deviceParameters['isPhysicalDevice'] ?? '';