PlatformType enum

PlatformType Enumeration Documentation:

The PlatformType enum represents the type of platform, categorizing it as mobile, desktop, or web.

Overview:

  • This enumeration is used to identify the general type of the platform, indicating whether it is mobile, desktop, or web-based.
  • Each value of the enum represents a specific type: mobile, desktop, or web.

Values:

  • mobile : Represents the mobile platform type, applicable when the application is running on mobile devices.
  • desktop : Represents the desktop platform type, applicable when the application is running on desktop computers.
  • web : Represents the web platform type, applicable when the application is running on web browsers.

This enumeration simplifies the identification of the platform's general type, facilitating platform-specific logic and behavior.

Inheritance

Constructors

PlatformType()
const

Values

mobile → const PlatformType
desktop → const PlatformType
web → const PlatformType

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<PlatformType>
A constant List of the values in this enum, in order of their declaration.