NicePlatform class
Platform detection utilities.
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
- icon → IconData
-
Platform icon
no setter
- isAndroid → bool
-
Is Android
no setter
- isApple → bool
-
Is Apple platform (iOS or macOS)
no setter
- isDesktop → bool
-
Is running on desktop (Windows, macOS, Linux)
no setter
- isIOS → bool
-
Is iOS
no setter
- isLinux → bool
-
Is Linux
no setter
- isMacOS → bool
-
Is macOS
no setter
- isMobile → bool
-
Is running on mobile (Android or iOS)
no setter
- isTouchDevice → bool
-
Is touch-primary device
no setter
- isWeb → bool
-
Is running on web
no setter
- isWindows → bool
-
Is Windows
no setter
- name → String
-
Get the platform name as string
no setter
- type → NicePlatformType
-
Get current platform type.
no setter