MaterialAppState class

State for ComposableMaterialApp, tracking locale and brightness.

Use MaterialAppState.initial to initialize from the current platform settings.

Constructors

MaterialAppState({required Locale locale, required Brightness brightness})
Creates a MaterialAppState.
const
MaterialAppState.initial()
Creates a state initialized from the current platform locale and brightness.
factory

Properties

brightness Brightness
The current brightness (light/dark mode).
final
hashCode int
The hash code for this object.
no setteroverride
locale Locale
The current locale.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Locale? locale, Brightness? brightness}) MaterialAppState
Returns a copy with the given fields replaced.
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.
override