main function

void main(
  1. List<String> args
)

Implementation

void main(List<String> args) {
  Listener<Counter>(
    store: store,
    onEvent: (state) => print(state.counter),
  );
  store.modifyState<Counter>((state) => state.addOne());
  Future.delayed(Duration(seconds: 2))
      .then((value) => store.modifyState<Counter>((state) => state.addOne()));
}