FluteProvider<T> class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ T
-
The state which immutable.
no setter
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<T> listener)
→ Function
-
Listens the state changes, similar to addListener and removeListener
but it has access to the state.
-
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(T newState)
→ void
-
To set the state, you can use set method.
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(_UpdateCallback<T> callback)
→ void
-
To update the state, you can use update method.