Logic<BaseState> class

Logic component which comes with an isolated channel by default.

Inheritance

Constructors

Logic()

Properties

channel Channel
read-only, inherited
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

dispatch(dynamic event) → void
inherited
dispose() → void
inherited
getState<S>() → S
inherited
getStateStream<S>() BehaviorSubject<S>
inherited
initState<S>(S initialValue) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onEvent<T>(dynamic handler(T event)) → void
inherited
onInit() Future<void>
Called after all components are registered This is the right place to dispatch any initial events
inherited
onRegister() → void
Called when the component is registered This is the right place to setup any listeners
inherited
onState<S>(dynamic handler(S state)) → void
Used to attach a handler whenever a state update for S occurs. [...]
inherited
setState<S>(S state) → void
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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