WritableState<Value> constructor
WritableState<Value> ([
- Value? value
State with read and write access.
Optionally pass the initial value of the state.
Implementation
WritableState([Value? value]) {
if (value is Value) ctx.$.add(value);
}