File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/app_configuration/bloc Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ class AppConfigurationBloc
100
100
state.copyWith (
101
101
remoteConfig: event.remoteConfig,
102
102
isDirty: true ,
103
- clearErrorMessage : true , // Clear any previous error messages
103
+ clearException : true , // Clear any previous error messages
104
104
clearShowSaveSuccess: true , // Clear success snackbar on field change
105
105
),
106
106
);
@@ -114,7 +114,7 @@ class AppConfigurationBloc
114
114
state.copyWith (
115
115
remoteConfig: state.originalRemoteConfig, // Revert to original config
116
116
isDirty: false ,
117
- clearErrorMessage : true , // Clear any previous error messages
117
+ clearException : true , // Clear any previous error messages
118
118
clearShowSaveSuccess: true , // Clear success snackbar
119
119
),
120
120
);
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ class AppConfigurationState extends Equatable {
54
54
RemoteConfig ? originalRemoteConfig,
55
55
HtHttpException ? exception,
56
56
bool ? isDirty,
57
- bool clearErrorMessage = false ,
57
+ bool clearException = false ,
58
58
bool ? showSaveSuccess,
59
59
bool clearShowSaveSuccess = false ,
60
60
}) {
61
61
return AppConfigurationState (
62
62
status: status ?? this .status,
63
63
remoteConfig: remoteConfig ?? this .remoteConfig,
64
64
originalRemoteConfig: originalRemoteConfig ?? this .originalRemoteConfig,
65
- exception: clearErrorMessage ? null : exception ?? this .exception,
65
+ exception: clearException ? null : exception ?? this .exception,
66
66
isDirty: isDirty ?? this .isDirty,
67
67
showSaveSuccess: clearShowSaveSuccess
68
68
? false
You can’t perform that action at this time.
0 commit comments