mirrored_repositories/Kimit-P7-G136/counter_with_cubit/lib
import 'package:counter_with_cubit/cubit/counter_states.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

class CounterCubit extends Cubit<CounterStates> {
  CounterCubit() : super(CounterInitState());

  int counter = 0;

  add() {
    counter++;
    emit(CounterUpdateState());
  }

  remove() {
    counter--;
    emit(CounterUpdateState());
  }
}
