Properties
disposed
→ bool
Tell us if the controller was disposed
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
hasListeners
→ bool
returns true when the current notifier has subscribers
no setter inherited
oldState
→ State
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
state
↔ State
Updates the State and notify to listeners and rebuild the widgets
getter/setter pair
stream
→ Stream <State >
A broadcast stream representation of a StateNotifier .
no setter inherited
Methods
addListener (ListenerCallback <State > listener , [dynamic autoDispose = false ])
→ void
add a new listener
inherited
dispose ()
→ void
use to listen when the controller was deleted from memory
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify (State data )
→ void
notify to listeners and rebuild the widgets
inherited
onlyUpdate (State newState )
→ void
updates the state but does not notify to the listeners
onStateChanged (State oldState , State currentState )
→ void
this method is called when the state has been changed
onStateWillChange (State oldState , State newState )
→ bool
this method is called when the state is going to be updated
By default this method returns true, you can use this method to intercept the newState
and check if the new state is valid.
If this method returns false the new state will be igonored
removeListener (ListenerCallback <State > listener )
→ void
remove a listener from the notifier
inherited
toString ()
→ String
A string representation of this object.
inherited