XDefaultThemeConfig class
Default theme configuration.
- Inheritance
-
- Object
- PlayxThemeConfig
- XDefaultThemeConfig
Constructors
- XDefaultThemeConfig()
- Creates a default XDefaultThemeConfig instance with predefined light and dark themes.
Properties
- darkThemeIndex → int?
-
Optional index for the dark theme to be used in theme mode switching.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialThemeIndex → int?
-
Index of the initial theme to start the app with.
If provided, it overrides
initialThemeMode.finalinherited - initialThemeMode → ThemeMode?
-
Optional initial theme mode to start the app with.
Used if
initialThemeIndexis null.finalinherited - lightThemeIndex → int?
-
Optional index for the light theme to be used in theme mode switching.
finalinherited
- logThemeChanges → bool
-
Whether to log theme changes or not.
finalinherited
- migratePrefsToAsyncPrefs → bool
-
Whether to migrate preferences to asynchronous preferences.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveTheme → bool
-
Whether to save the theme index to the device storage or not.
finalinherited
- storage → PlayxThemeStorage?
-
Where the selected theme and mode are persisted when saveTheme is true.
finalinherited
-
themes
↔ List<
XTheme> -
List of themes to use in the app.
getter/setter pairinherited
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