AcmeThemeData<T extends Object> class
Defines the configuration of the overall visual Theme based on the provided properties.
Constructors
-
AcmeThemeData.fallback({CustomColorsConverterCreator<
T> ? customColorsConverterCreator, ThemeMode themeMode = ThemeMode.light}) -
The fallback theme to use when no theme configurations are provided.
factory
-
AcmeThemeData.fromJson(String json, {CustomColorsConverterCreator<
T> ? customColorsConverterCreator}) -
The theme created based on the provided
json
.factory
Properties
-
components
→ Map<
String, ComponentConfig> -
The component configurations.
final
- darkTheme → ThemeData
-
The dark theme.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lightTheme → ThemeData
-
The light theme.
final
- name → String
-
The name of the theme.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeMode → ThemeMode
-
The theme mode.
final
Methods
-
copyWith(
{ThemeData? lightTheme, ThemeData? darkTheme, ThemeMode? themeMode}) → AcmeThemeData< Object> - Creates a copy of this theme but with the given fields replaced with the new values.
-
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