Skip to content

Commit a67b062

Browse files
committed
refactor(content_management): update props type in ArchivedTopicsEvent to support nullable types
1 parent 8bc91cf commit a67b062

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

lib/content_management/bloc/archived_topics/archived_topics_event.dart

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

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

0 commit comments

Comments
 (0)