store_ds 1.0.1 store_ds: ^1.0.1 copied to clipboard
An awesome Flutter package to manage state of program declaratively and functionally.
Usage #
You can use store_ds
to manage state as follows.
Widget build(BuildContext context) {
// changeStore
useStore('orders') ;
saveToStore('cod', 10);
saveToStore( 'cod' , getFromStore('cod' ) * 2); // results in cod : 20
return Container(child: Text(getFromStore('cod').toString()));
}