MyPlatform class

Implementers
Available extensions
Annotations
  • @freezed

Constructors

MyPlatform.android()
const
factory
MyPlatform.fuchsia()
const
factory
MyPlatform.ios()
const
factory
MyPlatform.linux()
const
factory
MyPlatform.macos()
const
factory
MyPlatform.web()
const
factory
MyPlatform.windows()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult android(AndroidPlatform value), required TResult ios(IosPlatform value), required TResult macos(MacosPlatform value), required TResult web(WebPlatform value), required TResult linux(LinuxPlatform value), required TResult windows(WindowsPlatform value), required TResult fuchsia(FuchsiaPlatform value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? android(AndroidPlatform value)?, TResult? ios(IosPlatform value)?, TResult? macos(MacosPlatform value)?, TResult? web(WebPlatform value)?, TResult? linux(LinuxPlatform value)?, TResult? windows(WindowsPlatform value)?, TResult? fuchsia(FuchsiaPlatform value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult android(AndroidPlatform value)?, TResult ios(IosPlatform value)?, TResult macos(MacosPlatform value)?, TResult web(WebPlatform value)?, TResult linux(LinuxPlatform value)?, TResult windows(WindowsPlatform value)?, TResult fuchsia(FuchsiaPlatform value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult android()?, TResult ios()?, TResult macos()?, TResult web()?, TResult linux()?, TResult windows()?, TResult fuchsia()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult android(), required TResult ios(), required TResult macos(), required TResult web(), required TResult linux(), required TResult windows(), required TResult fuchsia()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? android()?, TResult? ios()?, TResult? macos()?, TResult? web()?, TResult? linux()?, TResult? windows()?, TResult? fuchsia()?}) → TResult?
inherited

Operators

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