StateController class

Constructors

StateController()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispose() → void
getCurrentState<S>() → S
getStateStream<S>() BehaviorSubject<S>
Retrieves a state from the stateful event bus of Type S
initState<S>([S initialValue]) Type
Initializes the state either when first set or upon first retrieval.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onState<S>(Object target, dynamic handler(S)) → void
Used to attach a handler whenever a state change occurs. [...]
removeStateHandlers(Object target) → void
Remove any state handlers which have been attached by target.
setState<S>(S state) → void
Update or create a new state on the stateful event bus with the specified state.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited