incrementAsync method

Future<void> incrementAsync()

Implementation

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