FlutterModeManagerConfig class

Configuration for the mode manager Allows custom mode configurations and control over automatic mode switching

Constructors

FlutterModeManagerConfig({FlutterModeConfig? indoorModeConfig, FlutterModeConfig? outdoorModeConfig, FlutterModeConfig? drivingModeConfig, FlutterModeConfig? stationaryModeConfig, FlutterModeType? initialMode, FlutterModeType? forcedMode, bool? automaticModeSwitching})

Properties

automaticModeSwitching ↔ bool?
Whether automatic mode switching is enabled (default: true) Ignored if forcedMode is set
getter/setter pair
drivingModeConfig ↔ FlutterModeConfig?
Custom driving mode configuration. If null, uses default.
getter/setter pair
forcedMode ↔ FlutterModeType?
If set, forces this mode and disables automatic switching
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
indoorModeConfig ↔ FlutterModeConfig?
Custom indoor mode configuration. If null, uses default.
getter/setter pair
initialMode ↔ FlutterModeType?
Initial mode to start with (default: indoor)
getter/setter pair
outdoorModeConfig ↔ FlutterModeConfig?
Custom outdoor mode configuration. If null, uses default.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stationaryModeConfig ↔ FlutterModeConfig?
Custom stationary mode configuration. If null, uses default.
getter/setter pair

Methods

encode() → Object
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

decode(Object result) → FlutterModeManagerConfig