PlatformDetector class
Utility class for detecting the current platform and its capabilities
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
- currentPlatform → PlatformType
-
Detects the current platform type
no setter
- isAndroid → bool
-
Individual platform checks
no setter
- isDesktop → bool
-
Checks if the current platform is desktop (Windows, macOS, or Linux)
no setter
- isFuchsia → bool
-
Checks if the current platform is Fuchsia
no setter
- isIOS → bool
-
Checks if the current platform is iOS
no setter
- isLinux → bool
-
Checks if the current platform is Linux
no setter
- isMacOS → bool
-
Checks if the current platform is macOS
no setter
- isMobile → bool
-
Checks if the current platform is mobile (iOS or Android)
no setter
- isWeb → bool
-
Checks if the current platform is web
no setter
- isWindows → bool
-
Checks if the current platform is Windows
no setter
- supportsCupertino → bool
-
Checks if the current platform supports Cupertino Design
no setter
- supportsFluent → bool
-
Checks if the current platform supports Fluent Design
no setter
- supportsMaterial → bool
-
Checks if the current platform supports Material Design
no setter
Static Methods
-
refresh(
) → void - Force refresh of platform detection (useful for testing)