Skip to content

Commit 7e1c268

Browse files
committed
refactor: Remove eventCountries from HeadlineFilter
1 parent 6647397 commit 7e1c268

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/headlines-feed/models/headline_filter.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:ht_shared/ht_shared.dart';
66
/// {@endtemplate}
77
class HeadlineFilter extends Equatable {
88
/// {@macro headline_filter}
9-
const HeadlineFilter({this.categories, this.sources, this.eventCountries});
9+
const HeadlineFilter({this.categories, this.sources});
1010

1111
/// The list of selected category filters.
1212
/// Headlines matching *any* of these categories will be included (OR logic).
@@ -16,24 +16,18 @@ class HeadlineFilter extends Equatable {
1616
/// Headlines matching *any* of these sources will be included (OR logic).
1717
final List<Source>? sources;
1818

19-
/// The list of selected event country filters.
20-
/// Headlines matching *any* of these countries will be included (OR logic).
21-
final List<Country>? eventCountries;
22-
2319
@override
24-
List<Object?> get props => [categories, sources, eventCountries];
20+
List<Object?> get props => [categories, sources];
2521

2622
/// Creates a copy of this [HeadlineFilter] with the given fields
2723
/// replaced with the new values.
2824
HeadlineFilter copyWith({
2925
List<Category>? categories,
3026
List<Source>? sources,
31-
List<Country>? eventCountries,
3227
}) {
3328
return HeadlineFilter(
3429
categories: categories ?? this.categories,
3530
sources: sources ?? this.sources,
36-
eventCountries: eventCountries ?? this.eventCountries,
3731
);
3832
}
3933
}

0 commit comments

Comments
 (0)