Last updated:
0 purchases
beholder provider
class CounterVm extends ViewModel {
late final counter = state(0);
}
Widget build(BuildContext context) => ViewModelProvider(
create: (_) => CounterVm(),
builder: (context, watch) {
return Text('${watch(counter)}');
}
);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.