Platform class
Check if current platform matches
Constructors
- Platform()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
- isAnyMobile → bool
-
Check if running on any mobile platform (Android or iOS)
no setter
- isDesktop → bool
-
Check if running on any desktop platform
no setter
- isFuchsia → bool
-
no setter
- isIOS → bool
-
no setter
- isLinux → bool
-
no setter
- isMacOS → bool
-
no setter
- isMobile → bool
-
no setter
- isWeb → bool
-
no setter
- isWindows → bool
-
no setter