Writable<T> class abstract interface

Interface for writable reactive values.

Writable extends Readonly to provide write access, allowing values to be both read and modified reactively.

Example:

Writable<int> count = Signal(0);
count.value = 42; // Can modify
print(count.value); // Can read
Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
listenable JoltValueListenable<T>

Available on Readonly<T>, provided by the JoltValueListenableExtension extension

Converts this Jolt value to a Flutter ValueListenable.
no setter
notifier JoltValueNotifier<T>

Available on Readonly<T>, provided by the JoltValueNotifierExtension extension

Converts this Jolt value to a Flutter ValueNotifier.
no setter
peek → T
Gets the current value without establishing a reactive dependency.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
Gets the current value and establishes a reactive dependency.
getter/setter pairinherited-getter

Methods

get() → T
Gets the current value and establishes a reactive dependency.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Manually notifies all subscribers that this value has changed.
inherited
set(T value) → T
Sets a new value for this reactive value.
toString() String
A string representation of this object.
inherited

Operators

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