Skip to content

Commit 2598648

Browse files
committed
refactor(create_headline): remove unused country search term
- Remove countrySearchTerm from CreateHeadlineState - Update constructors and copyWith method to reflect the removal - Simplify the state class by removing unused properties
1 parent 0004980 commit 2598648

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/content_management/bloc/create_headline/create_headline_state.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ final class CreateHeadlineState extends Equatable {
3535
this.countriesHasMore = true,
3636
this.countriesIsLoadingMore = false,
3737
this.countriesCursor,
38-
this.countrySearchTerm = '',
3938
this.contentStatus = ContentStatus.active,
4039
this.exception,
4140
this.createdHeadline,
@@ -55,7 +54,6 @@ final class CreateHeadlineState extends Equatable {
5554
final bool countriesHasMore;
5655
final bool countriesIsLoadingMore;
5756
final String? countriesCursor;
58-
final String countrySearchTerm;
5957
final ContentStatus contentStatus;
6058
final HttpException? exception;
6159
final Headline? createdHeadline;
@@ -85,7 +83,6 @@ final class CreateHeadlineState extends Equatable {
8583
bool? countriesHasMore,
8684
bool? countriesIsLoadingMore,
8785
String? countriesCursor,
88-
String? countrySearchTerm,
8986
ContentStatus? contentStatus,
9087
HttpException? exception,
9188
Headline? createdHeadline,
@@ -106,7 +103,6 @@ final class CreateHeadlineState extends Equatable {
106103
countriesIsLoadingMore:
107104
countriesIsLoadingMore ?? this.countriesIsLoadingMore,
108105
countriesCursor: countriesCursor ?? this.countriesCursor,
109-
countrySearchTerm: countrySearchTerm ?? this.countrySearchTerm,
110106
contentStatus: contentStatus ?? this.contentStatus,
111107
exception: exception,
112108
createdHeadline: createdHeadline ?? this.createdHeadline,
@@ -129,7 +125,6 @@ final class CreateHeadlineState extends Equatable {
129125
countriesHasMore,
130126
countriesIsLoadingMore,
131127
countriesCursor,
132-
countrySearchTerm,
133128
contentStatus,
134129
exception,
135130
createdHeadline,

0 commit comments

Comments
 (0)