SignalBase<T> class
abstract
The base of a signal.
- Implementers
- Available extensions
Constructors
Properties
- autoDispose → bool
-
Whether to automatically dispose the signal (defaults to
SolidartConfig.autoDispose).
final
-
comparator
→ ValueComparator<
T?> -
An optional comparator function, defaults to identical.
final
- disposed → bool
-
Tells if the signal is disposed;
no setter
- equals → bool
-
Whether to check the equality of the value with the == equality.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPreviousValue → bool
-
Indicates if there is a previous value. It is especially
helpful if
Tis nullable.no setter - hasValue → bool
-
Whether or not the signal has been initialized with a value.
no setter
- listenerCount → int
-
The total number of listeners subscribed to the signal.
no setter
- name → String
-
The name of the signal, useful for logging purposes.
final
- previousValue → T?
-
The previous signal value
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trackInDevTools → bool
-
Whether to track the signal in the DevTools extension, defaults to
SolidartConfig.devToolsEnabled.
final
- trackPreviousValue → bool
-
Whether to track the previous value of the signal, defaults to true
final
- untrackedPreviousValue → T?
-
Returns the untracked previous value of the signal.
no setter
- untrackedValue → T
-
Returns the untracked value of the signal.
no setter
- 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 -
Available on SignalBase<
Observe the signal and trigger theT> , provided by the ObserveSignal extensionlistenerevery 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