incrementAsync method
Implementation
Future<void> incrementAsync() async {
await emitAsync(
Future.delayed(
const Duration(milliseconds: 100),
() => state.copyWith(count: state.count + 1),
),
);
}
Future<void> incrementAsync() async {
await emitAsync(
Future.delayed(
const Duration(milliseconds: 100),
() => state.copyWith(count: state.count + 1),
),
);
}