Skip to content

Instantly share code, notes, and snippets.

@chimon2000
Created July 16, 2020 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chimon2000/ca7211525d7a629469a72a680fc4be34 to your computer and use it in GitHub Desktop.
Save chimon2000/ca7211525d7a629469a72a680fc4be34 to your computer and use it in GitHub Desktop.
counter_cubit.dart
class CounterCubit extends Cubit<int> {
CounterCubit() : super(0);
void increment() => emit(state + 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment