BasePlatformMode class

Runtime platform mode By default iOS, macOS use cupertino mode, others use material mode

Constructors

BasePlatformMode({BaseMode android = BaseMode.material, BaseMode fuchsia = BaseMode.material, BaseMode iOS = BaseMode.cupertino, BaseMode linux = BaseMode.material, BaseMode macOS = BaseMode.cupertino, BaseMode windows = BaseMode.material, BaseMode? web, BaseMode others = BaseMode.material})
Runtime platform mode
const

Properties

android → BaseMode
TargetPlatform.android
final
fuchsia → BaseMode
TargetPlatform.fuchsia
final
hashCode → int
The hash code for this object.
no setterinherited
iOS → BaseMode
TargetPlatform.iOS
final
linux → BaseMode
TargetPlatform.linux
final
macOS → BaseMode
TargetPlatform.macOS
final
others → BaseMode
others
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
web → BaseMode?
web, defaults to follow system
final
windows → BaseMode
TargetPlatform.windows
final

Methods

changePlatformMode({BaseMode? mode}) → BasePlatformMode
Change build mode for a specific platform, excluding web
copyWith({BaseMode? android, BaseMode? fuchsia, BaseMode? iOS, BaseMode? linux, BaseMode? macOS, BaseMode? windows, BaseMode? web, BaseMode? others}) → BasePlatformMode
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