ZdsThemeService class

A class representing theme service which extends ZetaThemeService class. This class assists in loading and saving theme data. See also:

Inheritance

Constructors

ZdsThemeService({required SharedPreferences preferences, String? assetPath})
Creates an instance of ZdsThemeService.

Properties

assetPath String?
The path to load theme assets from.
final
hashCode int
The hash code for this object.
no setterinherited
preferences SharedPreferences
An instance of SharedPreferences class to manage local user preferences.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<ZdsThemeData>
Loads theme data from local storage or assets.
loadTheme() Future<(ZetaThemeData?, ThemeMode?, ZetaContrast?)>
An overridden method to load theme, theme mode, and contrast.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveTheme({required ZetaThemeData themeData, required ThemeMode themeMode, required ZetaContrast contrast}) Future<void>
An overridden method to save the theme, theme mode, and contrast.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited