CustomPlatform class abstract
Represents the platform-specific implementation of the CustomPlatform interface.
Constructors
Properties
- appName → String
-
Returns the name of the application.
no setter
- buildNumber → String
-
Returns the build number of the application.
no setter
-
deviceId
→ Future<
String> ? -
Returns the unique device ID.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAndroid → bool
-
Returns
true
if the platform is Android.no setter - isIOS → bool
-
Returns
true
if the platform is iOS.no setter - isLinux → bool
-
Returns
true
if the platform is Linux.no setter - isMacOS → bool
-
Returns
true
if the platform is macOS.no setter - isWindows → bool
-
Returns
true
if the platform is Windows.no setter - packageName → String
-
Returns the package name of the application.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String
-
Returns the version of the application.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
- Shares the given value.
- Shares the given value via email.
- Shares the given value via WhatsApp.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → CustomPlatform
-
Returns the instance of the platform.
no setter