PlatformInfo class

What the resolver needs to know about the device to pick the right native permission.

Constructors

PlatformInfo({required PermissionOS os, int? androidSdk})
const
PlatformInfo.android(int sdk)
const
PlatformInfo.ios()
const
PlatformInfo.other()
const

Properties

androidSdk → int?
Android API level (Build.VERSION.SDK_INT), or null off Android or when it could not be read.
final
hashCode → int
The hash code for this object.
no setteroverride
isAndroid → bool
no setter
isIOS → bool
no setter
os → PermissionOS
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

androidAtLeast(int sdk) → bool
Whether this is Android at API level sdk or above.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override