mirrored_repositories/counter_cubit_bloc/lib/page_cubit
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';

part 'counter_state.dart';

class CounterCubit extends Cubit<CounterState> {
  CounterCubit() : super(const CounterStateInitial());

  void increment() => emit(CounterStateData(state.counter + 1));
  void decrement() => emit(CounterStateData(state.counter - 1));
}
