ThemeState class
State used by DynamikTheme to determine ThemeData and ThemeMode.
Constructors
- ThemeState({required ThemeMode themeMode, ColorMode? colorMode, Color? seed})
-
State used by DynamikTheme to determine ThemeData and ThemeMode.
const
- ThemeState.fromJson(String source)
-
Returns ThemeState from encoded JSON String.
factory
-
ThemeState.fromMap(Map<
String, dynamic> map) -
Returns ThemeState from provided valid Map object.
factory
Properties
- colorMode → ColorMode?
-
If colorMode is null then seed will be ignored.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → Color?
-
If colorMode is null then seed will be ignored.
final
- themeMode → ThemeMode
-
Describes which theme will be used by MaterialApp.
final
Methods
-
copyWith(
{ThemeMode? themeMode, ColorMode? colorMode, Color? seed}) → ThemeState - Creates a copy of this theme state but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Encoded ThemeData to JSON String.
-
toMap(
) → Map< String, dynamic> - Returns Map representation of ThemeState.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override