File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
lib/content_management/bloc/create_category Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ part of 'create_category_bloc.dart' ;
2+
3+ /// Base class for all events related to the [CreateCategoryBloc] .
4+ sealed class CreateCategoryEvent extends Equatable {
5+ const CreateCategoryEvent ();
6+
7+ @override
8+ List <Object > get props => [];
9+ }
10+
11+ /// Event for when the category's name is changed.
12+ final class CreateCategoryNameChanged extends CreateCategoryEvent {
13+ const CreateCategoryNameChanged (this .name);
14+ final String name;
15+ @override
16+ List <Object > get props => [name];
17+ }
18+
19+ /// Event for when the category's description is changed.
20+ final class CreateCategoryDescriptionChanged extends CreateCategoryEvent {
21+ const CreateCategoryDescriptionChanged (this .description);
22+ final String description;
23+ @override
24+ List <Object > get props => [description];
25+ }
26+
27+ /// Event for when the category's icon URL is changed.
28+ final class CreateCategoryIconUrlChanged extends CreateCategoryEvent {
29+ const CreateCategoryIconUrlChanged (this .iconUrl);
30+ final String iconUrl;
31+ @override
32+ List <Object > get props => [iconUrl];
33+ }
34+
35+ /// Event to signal that the form should be submitted.
36+ final class CreateCategorySubmitted extends CreateCategoryEvent {
37+ const CreateCategorySubmitted ();
38+ }
You can’t perform that action at this time.
0 commit comments