@@ -16,6 +16,7 @@ import 'package:intl/intl.dart';
16
16
///
17
17
/// - [appState] : Represents the app state debug section.
18
18
/// - [appConstant] : Represents the app constant debug section.
19
+ /// - [environmentValue] : Represents the environment value debug section.
19
20
/// - [globalProperty] : Represents the global property debug section.
20
21
/// - [authenticatedUser] : Represents the authenticated user debug section.
21
22
/// - [widgetClass] : Represents the widget class debug section.
@@ -26,6 +27,7 @@ enum DebugSectionType {
26
27
componentParameters,
27
28
appState,
28
29
appConstants,
30
+ environmentValues,
29
31
globalProperties,
30
32
authenticatedUser,
31
33
widgetState,
@@ -158,6 +160,10 @@ void deserializeDebugEvent(String rawEventData) {
158
160
variableDebugData.appConstant = AppConstantDebugData ()
159
161
..fromSerializedBufferString (eventData);
160
162
break ;
163
+ case 'environmentValue' :
164
+ variableDebugData.environmentValue = EnvironmentValueDebugData ()
165
+ ..fromSerializedBufferString (eventData);
166
+ break ;
161
167
case 'globalProperty' :
162
168
variableDebugData.globalProperty = GlobalPropertyDebugData ()
163
169
..fromSerializedBufferString (eventData);
@@ -190,6 +196,7 @@ class VariableDebugData extends ChangeNotifier {
190
196
GlobalPropertyDebugData ? _globalProperty;
191
197
AppStateDebugData ? _appState;
192
198
AppConstantDebugData ? _appConstant;
199
+ EnvironmentValueDebugData ? _environmentValue;
193
200
AuthenticatedUserDebugData ? _authenticatedUser;
194
201
WidgetClassDebugData ? _widgetClass;
195
202
String ? projectId;
@@ -212,6 +219,12 @@ class VariableDebugData extends ChangeNotifier {
212
219
notifyListeners ();
213
220
}
214
221
222
+ EnvironmentValueDebugData ? get environmentValue => _environmentValue;
223
+ set environmentValue (EnvironmentValueDebugData ? value) {
224
+ _environmentValue = value;
225
+ notifyListeners ();
226
+ }
227
+
215
228
AuthenticatedUserDebugData ? get authenticatedUser => _authenticatedUser;
216
229
set authenticatedUser (AuthenticatedUserDebugData ? value) {
217
230
_authenticatedUser = value;
@@ -229,6 +242,7 @@ class VariableDebugData extends ChangeNotifier {
229
242
_globalProperty = null ;
230
243
_appState = null ;
231
244
_appConstant = null ;
245
+ _environmentValue = null ;
232
246
_authenticatedUser = null ;
233
247
_widgetClass = null ;
234
248
notifyListeners ();
@@ -394,6 +408,16 @@ class VariableDebugData extends ChangeNotifier {
394
408
parentSectionType: DebugSectionType .authenticatedUser,
395
409
),
396
410
),
411
+ narrowModalSection (
412
+ context,
413
+ sectionTitle: 'Environment Values' ,
414
+ childrenNodes: _treeNodeFromJsonMap (
415
+ environmentValue? .values,
416
+ context,
417
+ controller,
418
+ parentSectionType: DebugSectionType .environmentValues,
419
+ ),
420
+ ),
397
421
];
398
422
}
399
423
0 commit comments