Skip to content

Commit 4af14bd

Browse files
committed
refactor(app): rename appConfig to remoteConfig in AppState
- Rename variable 'appConfig' to 'remoteConfig' in AppState class - Update related constructor and copyWith method parameters - Adjust comments to reflect the new variable name
1 parent 369edc9 commit 4af14bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/app/bloc/app_state.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AppState extends Equatable {
3939
this.status = AppStatus.initial, // Changed from AppStatus
4040
this.user,
4141
this.locale,
42-
this.appConfig,
42+
this.remoteConfig,
4343
this.environment,
4444
});
4545

@@ -72,7 +72,7 @@ class AppState extends Equatable {
7272
final Locale? locale;
7373

7474
/// The global application configuration (remote config).
75-
final RemoteConfig? appConfig;
75+
final RemoteConfig? remoteConfig;
7676

7777
/// The current application environment (e.g., production, development, demo).
7878
final local_config.AppEnvironment? environment;
@@ -88,7 +88,7 @@ class AppState extends Equatable {
8888
User? user,
8989
UserAppSettings? settings,
9090
Locale? locale,
91-
RemoteConfig? appConfig,
91+
RemoteConfig? remoteConfig,
9292
local_config.AppEnvironment? environment,
9393
bool clearFontFamily = false,
9494
bool clearLocale = false,
@@ -106,7 +106,7 @@ class AppState extends Equatable {
106106
user: user ?? this.user,
107107
settings: settings ?? this.settings,
108108
locale: clearLocale ? null : locale ?? this.locale,
109-
appConfig: clearAppConfig ? null : appConfig ?? this.appConfig,
109+
remoteConfig: clearAppConfig ? null : remoteConfig ?? this.remoteConfig,
110110
environment: clearEnvironment ? null : environment ?? this.environment,
111111
);
112112
}
@@ -122,7 +122,7 @@ class AppState extends Equatable {
122122
user,
123123
settings,
124124
locale,
125-
appConfig,
125+
remoteConfig,
126126
environment,
127127
];
128128
}

0 commit comments

Comments
 (0)