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.

Annotations

Constructors

AppTheme({required String key, required ThemeData themeData})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → String
A unique identifier for this theme (e.g., "light", "dark"). It is what gets persisted.
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