Skip to content

pedrolemoz/atom_extensions

Repository files navigation

Atom Extensions

This package is meant to be a helper for ASP (Atomic State Pattern) in Dart.

Since ASP package deprecated RxList, RxSet and RxMap classes, this package aims to simplify the usage of collections in ASP.

For example, without Atom Extensions, you would write:

final myReactiveList = Atom<List<String>>([]);
final newList = myReactiveList.value;
newList.add('Pedro Lemos');
myReactiveList.setValue(newList);

With ASP, the same behavior is reduced to:

final myReactiveList = <String>[].createAtom();
myReactiveList.add('Pedro Lemos');

About

Atom Extensions for ASP package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages