removeAtom method

bool removeAtom(
  1. String key
)

Remove an Atom from the store. key the key of the Atom to remove.

Returns true if an Atom with the key key could be removed, otherwise false.

Implementation

bool removeAtom(String key) {
  _atoms[key]?.dispose();
  return _atoms.remove(key) != null;
}