set<R, W> method

void set<R, W>(
  1. WritableAtomBase<R, W> atom,
  2. W value
)

Set the state of a WritableAtom.

Implementation

void set<R, W>(WritableAtomBase<R, W> atom, W value) =>
    atom.$write(get, set, _ensureNode(atom).setValue, value);