PlatformPlus class abstract

Base class for getting platform information

Constructors

PlatformPlus()

Properties

androidVersionCode int?
Android: DeviceInfoPlugin().androidInfo.version.sdkInt
no setter
hashCode int
The hash code for this object.
no setterinherited
iosDevice IOSDevice
iOS: Parsed DeviceInfoPlugin().iosInfo.name
no setter
iosVersion double?
iOS: Parsed DeviceInfoPlugin().iosInfo.systemVersion
no setter
isAndroidNative bool
Platform.isAndroid
no setter
isAndroidWeb bool
BrowserDetector().platform.isAndroid
no setter
isFuschiaNative bool
Platform.isFuschia
no setter
isFuschiaWeb bool
Currently unsupported
no setter
isIOSNative bool
Platform.isIOS
no setter
isIOSWeb bool
BrowserDetector().platform.isIOS
no setter
isLinuxNative bool
Platform.isLinux
no setter
isLinuxWeb bool
BrowserDetector().platform.isLinux
no setter
isMacOSNative bool
Platform.isMacOS
no setter
isMacOSWeb bool
BrowserDetector().platform.isMacOS
no setter
isPhysicalDevice bool
Android: DeviceInfoPlugin().androidInfo.isPhysicalDevice
no setter
isTestFlight bool
iOS: If the app was installed from TestFlight
no setter
isUnitTest bool
Native: Platform.environment.containsKey('FLUTTER_TEST')
no setter
isWindowsNative bool
Platform.isWindows
no setter
isWindowsWeb bool
BrowserDetector().platform.isWindows
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsFirebase bool
kIsWeb || isAndroidNative || isIOSNative || isMacOSNative
no setter

Methods

init() Future<void>
Initialize the platform implementation so that subsequent calls can be made synchronously
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

platform → PlatformPlus
The PlatformPlus instance for the current platform
final