Skip to content

Commit 47189b0

Browse files
committed
fix(archived-topics): add restoredTopic field to ArchivedTopicsState
1 parent 7338f95 commit 47189b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/content_management/bloc/archived_topics/archived_topics_state.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,31 @@ class ArchivedTopicsState extends Equatable {
1616
this.cursor,
1717
this.hasMore = false,
1818
this.exception,
19+
this.restoredTopic,
1920
});
2021

2122
final ArchivedTopicsStatus status;
2223
final List<Topic> topics;
2324
final String? cursor;
2425
final bool hasMore;
2526
final HttpException? exception;
27+
final Topic? restoredTopic;
2628

2729
ArchivedTopicsState copyWith({
2830
ArchivedTopicsStatus? status,
2931
List<Topic>? topics,
3032
String? cursor,
3133
bool? hasMore,
3234
HttpException? exception,
35+
Topic? restoredTopic,
3336
}) {
3437
return ArchivedTopicsState(
3538
status: status ?? this.status,
3639
topics: topics ?? this.topics,
3740
cursor: cursor ?? this.cursor,
3841
hasMore: hasMore ?? this.hasMore,
3942
exception: exception ?? this.exception,
43+
restoredTopic: restoredTopic,
4044
);
4145
}
4246

@@ -47,5 +51,6 @@ class ArchivedTopicsState extends Equatable {
4751
cursor,
4852
hasMore,
4953
exception,
54+
restoredTopic,
5055
];
5156
}

0 commit comments

Comments
 (0)