nucleus 0.0.17+1 copy "nucleus: ^0.0.17+1" to clipboard
nucleus: ^0.0.17+1 copied to clipboard

An atomic state management utility.

example/main.dart

import 'package:nucleus/nucleus.dart';

final count = stateAtom(0);

void main(List<String> args) async {
  final store = Store();

  print(store.read(count));
  store.put(count, 2);
  print(store.read(count));
}