ComponentState class

Mixin representing an component with observable state change.

!Status: EXPERIMENTAL. APIs are not mature yet.

Used to efficiently communicate state changes to AppView.

Constructors

ComponentState()

Properties

stateChangeCallback ComponentStateCallback
Callback for state changes used by Angular AppView. [...]
write-only
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

deliverStateChanges() → void
Synchronously delivers changes to all subscribers. [...]
setState(void fn()) → void
Schedules a microtask to notify listeners of state change. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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