Skip to content

Commit 99bfb96

Browse files
committed
refactor(app_config): Refactor AppConfigurationState to use HtHttpException
1 parent e482de2 commit 99bfb96

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/app_configuration/bloc/app_configuration_state.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AppConfigurationState extends Equatable {
2424
this.status = AppConfigurationStatus.initial,
2525
this.remoteConfig,
2626
this.originalRemoteConfig,
27-
this.errorMessage,
27+
this.exception,
2828
this.isDirty = false,
2929
this.showSaveSuccess = false,
3030
});
@@ -52,7 +52,7 @@ class AppConfigurationState extends Equatable {
5252
AppConfigurationStatus? status,
5353
RemoteConfig? remoteConfig,
5454
RemoteConfig? originalRemoteConfig,
55-
String? errorMessage,
55+
HtHttpException? exception,
5656
bool? isDirty,
5757
bool clearErrorMessage = false,
5858
bool? showSaveSuccess,
@@ -62,9 +62,9 @@ class AppConfigurationState extends Equatable {
6262
status: status ?? this.status,
6363
remoteConfig: remoteConfig ?? this.remoteConfig,
6464
originalRemoteConfig: originalRemoteConfig ?? this.originalRemoteConfig,
65-
errorMessage: clearErrorMessage
65+
exception: clearErrorMessage
6666
? null
67-
: errorMessage ?? this.errorMessage,
67+
: exception ?? this.exception,
6868
isDirty: isDirty ?? this.isDirty,
6969
showSaveSuccess: clearShowSaveSuccess
7070
? false
@@ -74,11 +74,11 @@ class AppConfigurationState extends Equatable {
7474

7575
@override
7676
List<Object?> get props => [
77-
status,
78-
remoteConfig,
79-
originalRemoteConfig,
80-
errorMessage,
81-
isDirty,
82-
showSaveSuccess,
83-
];
77+
status,
78+
remoteConfig,
79+
originalRemoteConfig,
80+
exception,
81+
isDirty,
82+
showSaveSuccess,
83+
];
8484
}

0 commit comments

Comments
 (0)