OperatingSystem enum

Represents the operating system of a target platform.

Used with Platform to define the software environment for which a build or deployment is intended.

Inheritance
Available extensions

Values

windows → const OperatingSystem

Microsoft Windows (desktop, server), regardless of version.

linux → const OperatingSystem

Linux (desktop, server, embedded distributions), regardless of version and distribution.

macos → const OperatingSystem

Apple macOS (desktop/laptop)

ios → const OperatingSystem

Apple iOS (iPhone/iPad)

android → const OperatingSystem

Google Android (phones, tablets, embedded devices)

none → const OperatingSystem

No operating system (bare-metal targets)

Used for microcontrollers, firmware, or single-board computers without a full OS, that provides os abi.

generic → const OperatingSystem

Generic operating system without further description.

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<OperatingSystem>
A constant List of the values in this enum, in order of their declaration.