AppTheme class
Represents a single application theme configuration.
This class holds both the identifier (key) and the associated ThemeData for a specific theme, enabling easy switching and management of multiple themes.
Constructors
- AppTheme.new({required String key, required ThemeData themeData})
- Creates an instance of AppTheme.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
A unique identifier for this theme (e.g., "light", "dark").
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeData → ThemeData
-
The visual configuration data for this theme.
final
Methods
-
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