DeviceType enum
Represents various device types the application can run on.
Values
- android → const DeviceType
-
A device running on Android operating system.
- ios → const DeviceType
-
A device running on iOS operating system.
- fuchsia → const DeviceType
-
A device running on Fuchsia operating system.
- web → const DeviceType
-
A web-based device or browser.
- windows → const DeviceType
-
A device running on Windows operating system.
- mac → const DeviceType
-
A device running on macOS.
- linux → const DeviceType
-
A device running on Linux operating system.
- chromeos → const DeviceType
-
A device running on ChromeOS.
- harmonyos → const DeviceType
-
A device running on HarmonyOS.
- unknown → const DeviceType
-
A device with an unspecified or unknown operating system.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
DeviceType> - A constant List of the values in this enum, in order of their declaration.