FluteThemeProvider class abstract
- Inheritance
-
- Object
- FluteProviderBase
- FluteProvider<
ThemeData> - FluteThemeProvider
Constructors
- FluteThemeProvider(ThemeData state)
Properties
- darkThemeData → ThemeData
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lightThemeData → ThemeData
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → ThemeData
-
The state which immutable.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
-
dispose(
) → void -
Disposes the Provider, after that, it cannot be used.
inherited
-
listen(
_ListenerCallback< ThemeData> listener) → Function -
Listens the state changes, similar to addListener and removeListener
but it has access to the state.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Notifies all listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
set(
ThemeData newState) → void -
To set the state, you can use set method.
inherited
-
setMode(
ThemeMode mode) → void -
toString(
) → String -
A string representation of this object.
inherited
-
update(
_UpdateCallback< ThemeData> callback) → void -
To update the state, you can use update method.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited