File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed
lib/content_management/bloc/archived_headlines Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,36 @@ sealed class ArchivedHeadlinesEvent extends Equatable {
4
4
const ArchivedHeadlinesEvent ();
5
5
6
6
@override
7
- List <Object > get props => [];
7
+ List <Object ?> get props => [];
8
+ }
9
+
10
+ /// Event to request loading of archived headlines.
11
+ final class LoadArchivedHeadlinesRequested extends ArchivedHeadlinesEvent {
12
+ const LoadArchivedHeadlinesRequested ({this .startAfterId, this .limit});
13
+
14
+ final String ? startAfterId;
15
+ final int ? limit;
16
+
17
+ @override
18
+ List <Object ?> get props => [startAfterId, limit];
19
+ }
20
+
21
+ /// Event to restore an archived headline.
22
+ final class RestoreHeadlineRequested extends ArchivedHeadlinesEvent {
23
+ const RestoreHeadlineRequested (this .id);
24
+
25
+ final String id;
26
+
27
+ @override
28
+ List <Object ?> get props => [id];
29
+ }
30
+
31
+ /// Event to permanently delete an archived headline.
32
+ final class DeleteHeadlineForeverRequested extends ArchivedHeadlinesEvent {
33
+ const DeleteHeadlineForeverRequested (this .id);
34
+
35
+ final String id;
36
+
37
+ @override
38
+ List <Object ?> get props => [id];
8
39
}
You can’t perform that action at this time.
0 commit comments