PersistedNullableDoubleSignal class
A PersistedSignal that stores a nullable double value.
- Inheritance
-
- Object
- Signal<
double?> - PersistedSignal<
double?> - PersistedNullableDoubleSignal
- Available extensions
Constructors
- PersistedNullableDoubleSignal(double? val, String key, {SignalsKeyValueStore? store})
-
Creates a new
NullableDoubleSignal.
Properties
- autoDispose ↔ bool
-
Throws and error if read after dispose and can be
disposed on last unsubscribe.
getter/setter pairinherited
- debugLabel → String?
-
Debug label for Debug Mode
finalinherited
- disposed ↔ bool
-
Check if the effect is disposed
getter/setter pairinherited
- equalityCheck ↔ bool Function(double? a, double? b)
-
Optional method to check if to values are the same
getter/setter pairinherited
- globalId → int
-
Global ID of the signal
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalValue → double?
-
no setterinherited
- isInitialized → bool
-
Check if a signal value is set (does not subscribe)
no setterinherited
- key → String
-
The key to use for storing the value.
finalinherited
- loaded ↔ bool
-
Whether the signal has been loaded from the store.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sign → double
-
Available on ReadonlySignal<
The sign of the double's numerical value.double> , provided by the DoubleSignalExtension extensionno setter - store → SignalsKeyValueStore
-
The store to use for storing the value.
finalinherited
- value ↔ double?
-
Compute the current value
getter/setter pairinherited
- version ↔ int
-
Version numbers should always be >= 0, because the special value -1 is used
by Nodes to signify potentially unused but recyclable nodes.
getter/setter pairinherited
Methods
-
abs(
) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
afterCreate(
double? val) → void -
Internal hook for after a signal is created
inherited
-
beforeUpdate(
double? val) → void -
Internal hook for after a signal is updated
inherited
-
call(
) → double? -
Return the value when invoked
inherited
-
ceil(
) → int -
Available on ReadonlySignal<
Returns the least integer that is not smaller than this number.double> , provided by the DoubleSignalExtension extension -
ceilToDouble(
) → double -
Available on ReadonlySignal<
Returns the least integer double value no smaller thandouble> , provided by the DoubleSignalExtension extensionthis. -
decode(
String value) → double? -
Decodes the value from a string.
override
-
dispose(
) → void -
Dispose the signal
inherited
-
encode(
double? value) → String -
Encodes the value to a string.
override
-
floor(
) → int -
Available on ReadonlySignal<
Returns the greatest integer no greater than this number.double> , provided by the DoubleSignalExtension extension -
floorToDouble(
) → double -
Available on ReadonlySignal<
Returns the greatest integer double value no greater thandouble> , provided by the DoubleSignalExtension extensionthis. -
get(
) → double? -
Helper method to get the current value
inherited
-
init(
) → Future< void> -
Initializes the signal by loading the value from the store.
inherited
-
internalRefresh(
) → bool -
inherited
-
load(
) → Future< double?> -
Loads the value from the store.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose(
void cleanup()) → void Function() -
Add a cleanup function to be called when the signal is disposed
inherited
-
overrideWith(
double? val) → Signal< double?> -
Override the current signal with a new value as if it was created with it
inherited
-
peek(
) → double? -
In the rare instance that you have an effect that should write to another signal based on the previous value, but you don't want the effect to be subscribed to that signal, you can read a signals's previous value via
signal.peek().inherited -
readonly(
) → ReadonlySignal< double?> -
Returns a readonly signal
inherited
-
remainder(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
round(
) → int -
Available on ReadonlySignal<
Returns the integer closest to this number.double> , provided by the DoubleSignalExtension extension -
roundToDouble(
) → double -
Available on ReadonlySignal<
Returns the integer double value closest todouble> , provided by the DoubleSignalExtension extensionthis. -
save(
double? value) → Future< void> -
Saves the value to the store.
inherited
-
set(
double? val, {bool force = false}) → bool -
Set the current value by a method
inherited
-
subscribe(
void fn(double? value)) → void Function() -
Subscribe to value changes with a dispose function
inherited
-
subscribeToNode(
Node node) → void -
inherited
-
toJson(
) → dynamic -
Convert value to JSON
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
) → int -
Available on ReadonlySignal<
Returns the integer obtained by discarding any fractional part of this number.double> , provided by the DoubleSignalExtension extension -
truncateToDouble(
) → double -
Available on ReadonlySignal<
Returns the integer double value obtained by discarding any fractional digits fromdouble> , provided by the DoubleSignalExtension extensionthis. -
unsubscribeFromNode(
Node node) → void -
inherited
Operators
-
operator %(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator *(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator +(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator -(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator /(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator ~/(
num other) → int -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension