Skip to content

Commit

Permalink
Merge pull request #3552 from jrg1993/master
Browse files Browse the repository at this point in the history
Old StateNotifier syntax Decrement
  • Loading branch information
rrousselGit committed May 16, 2024
2 parents c6703f4 + 0aa94cc commit 8047d8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CounterNotifier extends StateNotifier<int> {
CounterNotifier() : super(0);

void increment() => state++;
void decrement() => state++;
void decrement() => state--;
}

final counterNotifierProvider = StateNotifierProvider<CounterNotifier, int>((ref) {
Expand Down

0 comments on commit 8047d8a

Please sign in to comment.