67 lines
1.4 KiB
Dart
67 lines
1.4 KiB
Dart
part of 'category_bloc.dart';
|
|
|
|
sealed class CategoryEvent extends Equatable {
|
|
const CategoryEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
final class CategoriesLoad extends CategoryEvent {
|
|
final List<Category> categories;
|
|
const CategoriesLoad(this.categories);
|
|
|
|
@override
|
|
List<Object> get props => [categories];
|
|
}
|
|
|
|
final class CategoryEditColor extends CategoryEvent {
|
|
final Category category;
|
|
final String color;
|
|
|
|
const CategoryEditColor(this.category, this.color);
|
|
|
|
@override
|
|
List<Object> get props => [category, color];
|
|
}
|
|
|
|
final class CategoryEditTransfert extends CategoryEvent {
|
|
final Category category;
|
|
final bool transfert;
|
|
|
|
const CategoryEditTransfert(this.category, this.transfert);
|
|
|
|
@override
|
|
List<Object> get props => [category, transfert];
|
|
}
|
|
|
|
final class CategoryEditEssential extends CategoryEvent {
|
|
final Category category;
|
|
final bool essential;
|
|
|
|
const CategoryEditEssential(this.category, this.essential);
|
|
|
|
@override
|
|
List<Object> get props => [category, essential];
|
|
}
|
|
|
|
final class CategoryEditLabel extends CategoryEvent {
|
|
final Category category;
|
|
final String label;
|
|
|
|
const CategoryEditLabel(this.category, this.label);
|
|
|
|
@override
|
|
List<Object> get props => [category, label];
|
|
}
|
|
|
|
final class CategoryRemove extends CategoryEvent {
|
|
final Category category;
|
|
|
|
const CategoryRemove(this.category);
|
|
|
|
@override
|
|
List<Object> get props => [category];
|
|
}
|
|
|
|
final class CategoryAdd extends CategoryEvent {} |