action static method

Atom<RxVoid> action({
  1. String? key,
  2. PipeCallback<RxVoid>? pipe,
})

Factory that return a Atom

Atom<RxVoid>(rxVoid); => Atom.action();

Implementation

static Atom<RxVoid> action({
  String? key,
  PipeCallback<RxVoid>? pipe,
}) {
  return Atom(
    rxVoid,
    key: key,
    pipe: pipe,
  );
}