DVLifecycleSignal<T> class abstract

A read-only reactive value.

Lifecycle state is owned by the framework: application code reads and observes it but never assigns it, which is why this type exposes no setter. The framework mutates it through DVMutableLifecycleSignal.

This is deliberately not the widget-bound DVSignal from dartvel_flutter: lifecycle exists on the server and during builds, where there is no BuildContext to bind to.

Constructors

DVLifecycleSignal()

Properties

changes → Stream<T>
Emits on every transition. Does not replay the current value; read value for that.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
The current state.
no setter

Methods

listen(FutureOr<void> onState(T state)) → StreamSubscription<T>
Observes transitions. Returns a subscription the caller can cancel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() → T
The current state. Provided so reads look the same as elsewhere in Dartvel, where signals are read with .read().
toString() → String
A string representation of this object.
inherited

Operators

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