Skip to content

Commit b639e2c

Browse files
committed
feat(content_management): add loading more state for countries
- Add 'countriesIsLoadingMore' field to EditHeadlineState - Update constructor and copyWith method to include new field - Modify Equatable props to include 'countriesIsLoadingMore'
1 parent 9699ad8 commit b639e2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/content_management/bloc/edit_headline/edit_headline_state.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ final class EditHeadlineState extends Equatable {
3434
this.topics = const [],
3535
this.countries = const [],
3636
this.countriesHasMore = true,
37+
this.countriesIsLoadingMore = false,
3738
this.countriesCursor,
3839
this.countrySearchTerm = '',
3940
this.contentStatus = ContentStatus.active,
@@ -54,6 +55,7 @@ final class EditHeadlineState extends Equatable {
5455
final List<Topic> topics;
5556
final List<Country> countries;
5657
final bool countriesHasMore;
58+
final bool countriesIsLoadingMore;
5759
final String? countriesCursor;
5860
final String countrySearchTerm;
5961
final ContentStatus contentStatus;
@@ -84,6 +86,7 @@ final class EditHeadlineState extends Equatable {
8486
List<Topic>? topics,
8587
List<Country>? countries,
8688
bool? countriesHasMore,
89+
bool? countriesIsLoadingMore,
8790
String? countriesCursor,
8891
String? countrySearchTerm,
8992
ContentStatus? contentStatus,
@@ -104,6 +107,8 @@ final class EditHeadlineState extends Equatable {
104107
topics: topics ?? this.topics,
105108
countries: countries ?? this.countries,
106109
countriesHasMore: countriesHasMore ?? this.countriesHasMore,
110+
countriesIsLoadingMore:
111+
countriesIsLoadingMore ?? this.countriesIsLoadingMore,
107112
countriesCursor: countriesCursor ?? this.countriesCursor,
108113
countrySearchTerm: countrySearchTerm ?? this.countrySearchTerm,
109114
contentStatus: contentStatus ?? this.contentStatus,
@@ -127,6 +132,7 @@ final class EditHeadlineState extends Equatable {
127132
topics,
128133
countries,
129134
countriesHasMore,
135+
countriesIsLoadingMore,
130136
countriesCursor,
131137
countrySearchTerm,
132138
contentStatus,

0 commit comments

Comments
 (0)