InjectedThemeImp<KEY> class
- Mixed-in types
-
- InjectedTheme<
KEY>
- InjectedTheme<
Constructors
-
InjectedThemeImp({required Map<
KEY, ThemeData> lightThemes, required Map<KEY, ThemeData> ? darkThemes, required ThemeMode themeModel, required String? persistKey, required StateInterceptor<KEY> ? stateInterceptor, required SideEffects<KEY> ? sideEffects, required DependsOn<KEY> ? dependsOn, required int undoStackLength, required bool autoDisposeWhenNotUsed, required String? debugPrintWhenNotifiedPreMessage, required Object? toDebugString(KEY?)?})
Properties
- darkTheme → ThemeData
-
Get the current dark theme.
no setteroverride
-
darkThemes
→ Map<
KEY, ThemeData> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
injected
↔ InjectedImp<
KEY> -
getter/setter pair
- isDarkTheme → bool
-
Wether the current mode is dark.
no setteroverride
- isLinkedToTopStatelessWidget ↔ bool
-
getter/setter pair
- lightTheme → ThemeData
-
Get the current light theme.
no setteroverride
-
lightThemes
→ Map<
KEY, ThemeData> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ KEY
-
The current state (theme name)
getter/setter pairoverride
-
supportedDarkThemes
→ Map<
KEY, ThemeData> -
Get supported dark themes
no setteroverride
-
supportedLightThemes
→ Map<
KEY, ThemeData> -
Get supported light themes
no setteroverride
- themeMode ↔ ThemeMode
-
The current ThemeMode
getter/setter pairoverride
Methods
-
activeTheme(
[KEY? themeName]) → ThemeData -
Get the active ThemeData depending on ThemeMode.
override
-
dispose(
) → void -
Dispose the state
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggle(
) → void -
Toggle the current theme between dark and light
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited