Skip to content

Commit 5059e8a

Browse files
committed
refactor(archived_sources): update props type in ArchivedSourcesEvent to support nullable types
1 parent daa8060 commit 5059e8a

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

lib/content_management/bloc/archived_sources/archived_sources_event.dart

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,26 @@ sealed class ArchivedSourcesEvent extends Equatable {
44
const ArchivedSourcesEvent();
55

66
@override
7-
List<Object> get props => [];
7+
List<Object?> get props => [];
8+
}
9+
10+
/// Event to request loading of archived sources.
11+
final class LoadArchivedSourcesRequested extends ArchivedSourcesEvent {
12+
const LoadArchivedSourcesRequested({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 source.
22+
final class RestoreSourceRequested extends ArchivedSourcesEvent {
23+
const RestoreSourceRequested(this.id);
24+
25+
final String id;
26+
27+
@override
28+
List<Object?> get props => [id];
829
}

0 commit comments

Comments
 (0)