ThemeModeService class

Domain layer service for theme mode configurations.

Constructors

ThemeModeService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromKey(String key) ThemeMode
Converts a string key to a ThemeMode.
getIcon(ThemeMode mode) IconData
Converts a ThemeMode to its icon.
getIconFromKey(String key) IconData
Converts a string key to its icon.
getKey(ThemeMode mode) String
Converts a ThemeMode to its key (e.g., ThemeMode.system -> 'system').
getLabel(ThemeMode mode) String
Converts a ThemeMode to its display label.
getLabelFromKey(String key) String
Converts a string key to its display label.
getThemeKeys() List<String>
Returns the list of theme keys (e.g., 'system', 'light', 'dark').
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