runtimeAtom top-level property
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;
});