part of 'category_bloc.dart';

final class CategoryState {
  final List<Category> categories;
  final Map<String, Color> categoriesColors; 

  const CategoryState({
    this.categories = const [],
    this.categoriesColors = const {},
  });

  CategoryState copyWith({
    List<Category>? categories,
    Map<String, Color>? categoriesColors,
  }) {
    return CategoryState(
      categories: categories ?? this.categories,
      categoriesColors: categoriesColors ?? this.categoriesColors,
    );
  }
}

final class CategoryRemoveFail extends CategoryState {}
final class CategoryRemoveSucess extends CategoryState {}