Platform enum

Inheritance
Available extensions

Values

ios → const Platform
const Platform('iOS')
android → const Platform
const Platform('Android')
web → const Platform
const Platform('Web')
macos → const Platform
const Platform('macOS')
windows → const Platform
const Platform('Windows')
linux → const Platform
const Platform('Linux')

Properties

displayName String
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isDesktop bool
Check if platform is desktop
no setter
isMobile bool
Check if platform is mobile
no setter
isWeb bool
Check if platform is web
no setter
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

all List<Platform>
Get all available platforms as a list
no setter
defaults List<Platform>
Get default platforms (iOS and Android)
no setter

Static Methods

fromString(String input) Platform?
Get platform from string input

Constants

values → const List<Platform>
A constant List of the values in this enum, in order of their declaration.