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

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
stateChangeCallback ComponentStateCallback

Callback for state changes used by Angular AppView.

write-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

deliverStateChanges() → void

Synchronously delivers changes to all subscribers.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
setState(void fn()) → void

Schedules a microtask to notify listeners of state change.

toString() → String

Returns a string representation of this object.

inherited