CallbackCoupledObserver<State> class

Mixed-in types

Constructors

CallbackCoupledObserver.new({ObserverCallback<State>? callback, CoupledObserverCallback<State>? attached, CoupledObserverCallback<State>? detached})

Properties

callback ObserverCallback<State>?
The callback to be executed when a new state is notified by the subject.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subjects List<Subject<State>>
List of subjects that the observer is attached to. This list is unmodifiable.
no setterinherited

Methods

attached(Subject<State> subject) → void
This method is called whenever the observer is attached to a subject.
override
call(Subject<State> subject, State state) → void
inherited
detached(Subject<State> subject) → void
This method is called whenever the observer is detached from a subject.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(Subject<State> subject, State state) → void
This method is called whenever there is a change in the state of the Subject.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited