SignalBase<T> class abstract

The base of a signal.

Implementers

Constructors

SignalBase()

Properties

disposed bool
Tells if the signal is disposed;
no setter
hashCode int
The hash code for this object.
no setterinherited
hasPreviousValue bool
Indicates if there is a previous value. It is especially helpful if T is nullable.
no setter
listenerCount int
The total number of listeners subscribed to the signal.
no setter
options SignalOptions<T>
Options used to customize the behaviour of a signal
no setter
previousValue → T?
The previous signal value
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The current signal value
no setter

Methods

call() → T
The current signal value
dispose() → void
Diposes the signal
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(ObserveCallback<T> listener, {bool fireImmediately = false}) DisposeObservation
Observe the signal and trigger the listener every time the value changes
onDispose(VoidCallback cb) → void
Fired when the signal is disposing
toString() String
A string representation of this object.
inherited

Operators

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