$write method

  1. @override
void $write(
  1. GetAtom get,
  2. SetAtom set,
  3. SetSelf<R> setSelf,
  4. R value,
)
override

When the atom recieves a write with the given value, this method determines the outcome.

Implementation

@override
void $write(GetAtom get, SetAtom set, SetSelf<R> setSelf, R value) =>
    setSelf(value);