SubjectState<State> mixin

Superclass constraints
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
notifyOnAttach bool
Whether the observer should be notified when it is attached to the subject.
no setter
observers List<Observer<State>>
List of observers that are attached to the subject. This list is unmodifiable.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ↔ State
The current state of the subject.
getter/setter pair

Methods

attach(Observer<State> observer) → void
Attaches an observer to the subject.
override
detach(Observer<State> observer) → void
Detaches an observer from the subject.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(State state) → void
Notifies all observers that there's a change in the state of the subject.
override
toString() String
A string representation of this object.
inherited

Operators

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