OperatingSystem enum
Operation system
- Fuchsia
- Linux
- MacOS
- Windows
- iOS
- Android
- Unknown
Constructors
- OperatingSystem(String name)
-
Operation system
const
Values
- unknown → const OperatingSystem
-
Unknown
const OperatingSystem('Unknown')
- windows → const OperatingSystem
-
Windows
const OperatingSystem('Windows')
- linux → const OperatingSystem
-
Linux
const OperatingSystem('Linux')
- macOS → const OperatingSystem
-
MacOS
const OperatingSystem('macOS')
- iOS → const OperatingSystem
-
iOS
const OperatingSystem('iOS')
- android → const OperatingSystem
-
Android
const OperatingSystem('Android')
- fuchsia → const OperatingSystem
-
Fuchsia
const OperatingSystem('Fuchsia')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isAndroid → bool
-
Android
no setter
- isFuchsia → bool
-
Fuchsia
no setter
- isIOS → bool
-
iOS
no setter
- isLinux → bool
-
Linux
no setter
- isMacOS → bool
-
MacOS
no setter
- isUnknown → bool
-
Unknown
no setter
- isWindows → bool
-
Windows
no setter
- name → String
-
Operation system name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
maybeWhen<
OperatingSystemResult extends Object?> ({required OperatingSystemResult orElse(), OperatingSystemResult android()?, OperatingSystemResult fuchsia()?, OperatingSystemResult iOS()?, OperatingSystemResult linux()?, OperatingSystemResult macOS()?, OperatingSystemResult windows()?}) → OperatingSystemResult - Run callback on specific operation system, if not specified run orElse
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
OperatingSystemResult extends Object?> ({required OperatingSystemResult android(), required OperatingSystemResult fuchsia(), required OperatingSystemResult iOS(), required OperatingSystemResult linux(), required OperatingSystemResult macOS(), required OperatingSystemResult windows(), required OperatingSystemResult unknown()}) → OperatingSystemResult - Run callback on specific operation system
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
OperatingSystem> - A constant List of the values in this enum, in order of their declaration.