Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:mobx/mobx.dart';
- part 'counter.g.dart';
- class Counter = _Counter with _$Counter;
- abstract class _Counter with Store {
- @observable
- int value = 0;
- @action
- increment() {
- value++;
- }
- }
RAW Paste Data