|
1 | 1 | part of 'settings_bloc.dart'; |
2 | 2 |
|
3 | 3 | sealed class SettingsState extends Equatable { |
4 | | - const SettingsState({this.userAppSettings}); |
| 4 | + const SettingsState({this.appSettings}); |
5 | 5 |
|
6 | 6 | /// The current user application settings. Null if not loaded or unauthenticated. |
7 | | - final UserAppSettings? userAppSettings; |
| 7 | + final AppSettings? appSettings; |
8 | 8 |
|
9 | 9 | @override |
10 | | - List<Object?> get props => [userAppSettings]; |
| 10 | + List<Object?> get props => [appSettings]; |
11 | 11 | } |
12 | 12 |
|
13 | 13 | /// {@template settings_initial} |
14 | 14 | /// The initial settings state. |
15 | 15 | /// {@endtemplate} |
16 | 16 | final class SettingsInitial extends SettingsState { |
17 | 17 | /// {@macro settings_initial} |
18 | | - const SettingsInitial({super.userAppSettings}); |
| 18 | + const SettingsInitial({super.appSettings}); |
19 | 19 | } |
20 | 20 |
|
21 | 21 | /// {@template settings_load_in_progress} |
22 | 22 | /// State indicating that user settings are being loaded. |
23 | 23 | /// {@endtemplate} |
24 | 24 | final class SettingsLoadInProgress extends SettingsState { |
25 | 25 | /// {@macro settings_load_in_progress} |
26 | | - const SettingsLoadInProgress({super.userAppSettings}); |
| 26 | + const SettingsLoadInProgress({super.appSettings}); |
27 | 27 | } |
28 | 28 |
|
29 | 29 | /// {@template settings_load_success} |
30 | 30 | /// State indicating that user settings have been successfully loaded. |
31 | 31 | /// {@endtemplate} |
32 | 32 | final class SettingsLoadSuccess extends SettingsState { |
33 | 33 | /// {@macro settings_load_success} |
34 | | - const SettingsLoadSuccess({required super.userAppSettings}); |
| 34 | + const SettingsLoadSuccess({required super.appSettings}); |
35 | 35 | } |
36 | 36 |
|
37 | 37 | /// {@template settings_load_failure} |
38 | 38 | /// State indicating that loading user settings failed. |
39 | 39 | /// {@endtemplate} |
40 | 40 | final class SettingsLoadFailure extends SettingsState { |
41 | 41 | /// {@macro settings_load_failure} |
42 | | - const SettingsLoadFailure(this.exception, {super.userAppSettings}); |
| 42 | + const SettingsLoadFailure(this.exception, {super.appSettings}); |
43 | 43 |
|
44 | 44 | /// The error exception describing the failure. |
45 | 45 | final HttpException exception; |
46 | 46 |
|
47 | 47 | @override |
48 | | - List<Object?> get props => [exception, userAppSettings]; |
| 48 | + List<Object?> get props => [exception, appSettings]; |
49 | 49 | } |
50 | 50 |
|
51 | 51 | /// {@template settings_update_in_progress} |
52 | 52 | /// State indicating that user settings are being updated. |
53 | 53 | /// {@endtemplate} |
54 | 54 | final class SettingsUpdateInProgress extends SettingsState { |
55 | 55 | /// {@macro settings_update_in_progress} |
56 | | - const SettingsUpdateInProgress({required super.userAppSettings}); |
| 56 | + const SettingsUpdateInProgress({required super.appSettings}); |
57 | 57 | } |
58 | 58 |
|
59 | 59 | /// {@template settings_update_success} |
60 | 60 | /// State indicating that user settings have been successfully updated. |
61 | 61 | /// {@endtemplate} |
62 | 62 | final class SettingsUpdateSuccess extends SettingsState { |
63 | 63 | /// {@macro settings_update_success} |
64 | | - const SettingsUpdateSuccess({required super.userAppSettings}); |
| 64 | + const SettingsUpdateSuccess({required super.appSettings}); |
65 | 65 | } |
66 | 66 |
|
67 | 67 | /// {@template settings_update_failure} |
68 | 68 | /// State indicating that updating user settings failed. |
69 | 69 | /// {@endtemplate} |
70 | 70 | final class SettingsUpdateFailure extends SettingsState { |
71 | 71 | /// {@macro settings_update_failure} |
72 | | - const SettingsUpdateFailure(this.exception, {super.userAppSettings}); |
| 72 | + const SettingsUpdateFailure(this.exception, {super.appSettings}); |
73 | 73 |
|
74 | 74 | /// The error exception describing the failure. |
75 | 75 | final HttpException exception; |
76 | 76 |
|
77 | 77 | @override |
78 | | - List<Object?> get props => [exception, userAppSettings]; |
| 78 | + List<Object?> get props => [exception, appSettings]; |
79 | 79 | } |
0 commit comments