RunPlatform enum
What an Entrypoint can run on — one of Flutter's platforms, or a shorthand for a group of them.
The concrete members are flutter run's own platform names, which is what
makes them checkable: the device list reports the same vocabulary, so a
declaration and a device either match or visibly do not. The two shorthands
are the daemon's device categories, and exist because "this is a phone
thing" is the restriction people actually mean most of the time.
Values
- ios → const RunPlatform
- android → const RunPlatform
- macos → const RunPlatform
- linux → const RunPlatform
- windows → const RunPlatform
- web → const RunPlatform
- mobile → const RunPlatform
- desktop → const RunPlatform
Properties
-
expanded
→ Set<
RunPlatform> -
The concrete platforms this stands for — itself, unless it is a shorthand.
no setter
- 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
Static Methods
-
byName(
String name) → RunPlatform? -
expandAll(
Iterable< RunPlatform> platforms) → Set<RunPlatform> -
Every concrete platform
platformsallows, shorthands expanded.
Constants
-
values
→ const List<
RunPlatform> - A constant List of the values in this enum, in order of their declaration.