AdaptiveTheme class

Main class for managing adaptive themes

Constructors

AdaptiveTheme()

Properties

config → AdaptiveThemeConfig
Current configuration
no setter
currentMode → AdaptiveThemeMode
Current theme mode
no setter
currentTheme → ThemeData
Current theme data
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDark → bool
Check if the theme is currently dark
no setter
isLight → bool
Check if the theme is currently light
no setter
modeStream → Stream<AdaptiveThemeMode>
Stream of mode changes
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
themeStream → Stream<ThemeData>
Stream of theme changes
no setter

Methods

dispose() → void
Dispose resources
initialize(AdaptiveThemeConfig config) → Future<void>
Initialize the adaptive theme system
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMode(AdaptiveThemeMode mode) → Future<void>
Set the theme mode
toggleTheme() → Future<void>
Toggle between light and dark themes
toString() → String
A string representation of this object.
inherited
updateConfig(AdaptiveThemeConfig newConfig) → Future<void>
Update the configuration

Operators

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