ThemingConfig class
Represents the configuration for theming the application.
This class encapsulates settings related to the application's visual appearance, including primary and secondary colors and the font family. It provides methods for converting between JSON and Dart objects for data persistence and serialization.
Constructors
- ThemingConfig({required String primaryColor, required String secondaryColor, required String fontFamily})
- Creates a ThemingConfig instance.
-
ThemingConfig.fromJson(Map<
String, dynamic> json) -
Creates a ThemingConfig instance from a JSON map.
factory
Properties
- fontFamily → String
-
The font family to use for text in the application.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- primaryColor → String
-
The primary color of the theme.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → String
-
The secondary color of the theme.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this ThemingConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited