reduct 1.0.1 copy "reduct: ^1.0.1" to clipboard
reduct: ^1.0.1 copied to clipboard

An elementary yet adaptable state management solution for Dart.

Reduct #

Uses atomic state to improve and simplify dart state management.

Install #

dart pub add reduct

Atoms #

final counter = Atom(0);
final increment = Atom.action();

Reducer #

class CounterReducer extends Reducer {
  CounterReducer() {
    on(increment, (_) => counter.value++);
  }
}

Observe Atoms #

All atoms can be observed:

Disposer disposer = counter.addListener((value) {
    print(value);
});

disposer();
1
likes
160
pub points
37%
popularity

Publisher

verified publishereronsoft.com

An elementary yet adaptable state management solution for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on reduct