Skip to content

Commit ef05d7c

Browse files
committed
refactor(account): restore and update AccountFollowCountryToggled event
- Restore the previously removed AccountFollowCountryToggled event - Update the event to include 'const' constructor and props override
1 parent 4a9291a commit ef05d7c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/account/bloc/account_event.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ class AccountFollowSourceToggled extends AccountEvent {
4949
List<Object> get props => [source];
5050
}
5151

52-
// AccountFollowCountryToggled event correctly removed previously
52+
class AccountFollowCountryToggled extends AccountEvent {
53+
const AccountFollowCountryToggled({required this.country});
54+
final Country country;
55+
56+
@override
57+
List<Object> get props => [country];
58+
}
5359

5460
class AccountClearUserPreferences extends AccountEvent {
5561
const AccountClearUserPreferences({required this.userId});

0 commit comments

Comments
 (0)