runtimeAtom top-level property

ReadOnlyAtom<Runtime> runtimeAtom
final

The default Runtime used by used by zioRefAtomSync and zioAtom. Also used by the extension methods on AtomContext and BuildContext.

Implementation

final runtimeAtom = atom((get) {
  final runtime = Runtime();
  get.onDispose(() => runtime.dispose.run());
  return runtime;
});