AdaptiveThemeProvider class

Provider class for adaptive theme state management

Inheritance

Constructors

AdaptiveThemeProvider()

Properties

config → AdaptiveThemeConfig?
Current configuration
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isDark → bool
Whether the current theme is dark
no setter
isInitialized → bool
Whether the provider is initialized
no setter
isLight → bool
Whether the current theme is light
no setter
mode → AdaptiveThemeMode
Current theme mode
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → ThemeData
Current theme data
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Dispose the provider
override
initialize(AdaptiveThemeConfig config) → Future<void>
Initialize the provider with configuration
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
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