WritableState<Value> constructor

WritableState<Value>([
  1. 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);
}