TPlatform class final
Web-Safe operating system checking, and device type from the screen/view size.
If you want more information about the current device, I recommend the device_info_plus package.
Constructors
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
- isAndroid → bool
-
If the current operating system is Android (non web browser).
no setter
- isApple → bool
-
If the current platform is an Apple one.
no setter
- isDesktop → bool
-
If the current device is a Desktop.
no setter
- isFuchsia → bool
-
If the current operating system is Fuchsia OS (non web browser).
no setter
- isGoogle → bool
-
If the current platform is a Google one.
no setter
- isIOS → bool
-
If the current operating system is iOS (non web browser).
no setter
- isLinux → bool
-
If the current operating system is a Linux distro (non web browser).
no setter
- isMacOS → bool
-
If the current operating system is macOS (non web browser).
no setter
- isMobile → bool
-
If the current device is a Mobile Phone.
no setter
- isTablet → bool
-
If the current device is a Tablet.
no setter
- isWeb → bool
-
If the current platform is a web browser
no setter
- isWindows → bool
-
If the current operating system is Windows (non web browser).
no setter
Static Methods
-
getDeviceType(
) → TDeviceType - Returns the device type from the screen/view size.