Skip to content

Instantly share code, notes, and snippets.

@chimon2000
Created July 16, 2020 07:07
Show Gist options
  • Select an option

  • Save chimon2000/ca7211525d7a629469a72a680fc4be34 to your computer and use it in GitHub Desktop.

Select an option

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