Created
July 16, 2020 07:07
-
-
Save chimon2000/ca7211525d7a629469a72a680fc4be34 to your computer and use it in GitHub Desktop.
counter_cubit.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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