import 'package:flutter_bloc/flutter_bloc.dart';

enum LoadingState { initial, loading, loaded }

class LoadingBloc extends Cubit<LoadingState> {
  LoadingBloc() : super(LoadingState.initial);

  void setLoading() => emit(LoadingState.loading);

  void setLoaded() => emit(LoadingState.loaded);
}