import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:my_flutter_puzzle/cubits/base_cubit_type.dart'; class CountDownTimerCubit extends Cubit> { CountDownTimerCubit() : super( BaseCubitType( eventName: CountDownTimerState.empty, ), ); void empty() => emit(BaseCubitType(eventName: CountDownTimerState.empty)); void start() => emit(BaseCubitType(eventName: CountDownTimerState.start)); void stop() => emit(BaseCubitType(eventName: CountDownTimerState.stop)); void reset() => emit(BaseCubitType(eventName: CountDownTimerState.reset)); } enum CountDownTimerState { empty, start, stop, reset, }