ReactiveDoubleN class
A specialized implementation of ReactiveN for nullable double values.
It extends the ReactiveN class and provides specific functionality for nullable double values. Use this class when you need a reactive double variable that supports null values and can be observed for changes.
Constructors
- ReactiveDoubleN([double? value, bool enableHistory = false, int maxHistorySize = 50])
- Creates a new instance of ReactiveDoubleN with the initial value.
Properties
- canRedo → bool
-
Returns
trueif redo is available.no setterinherited - canUndo → bool
-
Returns
trueif undo is available.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
listeners
→ List<
Function> -
Returns a list of all registered listener functions.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ double?
-
Gets the current value of the reactive variable.
getter/setter pairinherited
-
valueNotifier
→ ValueNotifier<
double?> -
Provides access to the underlying ValueNotifier.
no setterinherited
Methods
-
addListener(
void listener(double? value), {String? listenerName}) → void -
Registers a
listenerthat will be called whenever the value changes.inherited -
bindStream(
Stream< double?> stream) → StreamSubscription<double?> -
Binds a
streamto this reactive variable.inherited -
clearHistory(
) → void -
Clears all history and resets to the current value.
inherited
-
close(
) → void -
Disposes of all resources used by this reactive variable.
inherited
-
ever(
void callback(double? value)) → void -
Registers a
callbackthat executes every time the value changes.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
once(
void callback(double? value)) → void -
Registers a
callbackthat executes only once on the next value change.inherited -
redo(
) → bool -
Reapplies a previously undone value.
inherited
-
refresh(
) → void -
Manually triggers an update to all listeners and Observer widgets.
inherited
-
removeAllListeners(
) → void -
Removes all registered listeners from this reactive variable.
inherited
-
removeListener(
{required String listenerName}) → void -
Removes a specific listener by its
listenerName.inherited -
setDebounce(
Duration duration) → void -
Configures debounce behavior for value updates.
inherited
-
setThrottle(
Duration duration) → void -
Configures throttle behavior for value updates.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → bool -
Reverts to the previous value in history.
inherited
-
updateDebounced(
double? value) → void -
Updates the value with debounce applied.
inherited
-
updateThrottled(
double? value) → void -
Updates the value with throttle applied.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited