PlatformType enum
Represents the different platforms supported by the DeeplinkX plugin.
This enum is used to identify the current platform and handle platform-specific behavior for deeplinks. Each value corresponds to a supported platform with its string representation.
The enum provides a fromOperatingSystem factory method to create a PlatformType instance from a platform string. If the platform is not recognized, it defaults to web.
Values
- web → const PlatformType
-
Web platform - used for browser-based applications
const PlatformType('web') - ios → const PlatformType
-
iOS platform - used for iPhone and iPad applications
const PlatformType('ios') - android → const PlatformType
-
Android platform - used for Android applications
const PlatformType('android') - windows → const PlatformType
-
Windows platform - used for Windows desktop applications
const PlatformType('windows') - macos → const PlatformType
-
macOS platform - used for macOS desktop applications
const PlatformType('macos') - linux → const PlatformType
-
Linux platform - used for Linux desktop applications
const PlatformType('linux')
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
- value → String
-
The string representation of the platform
final
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
-
fromOperatingSystem(
String os) → PlatformType - Creates a PlatformType from an operating system string.
Constants
-
values
→ const List<
PlatformType> - A constant List of the values in this enum, in order of their declaration.