@@ -339,6 +339,7 @@ class AnalyticsImpl implements Analytics {
339
339
final File _clientIdFile;
340
340
final UserProperty _userProperty;
341
341
final LogHandler _logHandler;
342
+ final String ? _enabledFeatures;
342
343
343
344
/// Tells the client if they need to show a message to the
344
345
/// user; this will return true if it is the first time the
@@ -406,8 +407,8 @@ class AnalyticsImpl implements Analytics {
406
407
truncateStringToLength (io.Platform .operatingSystemVersion, 36 ),
407
408
locale: io.Platform .localeName,
408
409
clientIde: clientIde,
409
- enabledFeatures: enabledFeatures,
410
410
),
411
+ _enabledFeatures = enabledFeatures,
411
412
_configHandler = ConfigHandler (
412
413
homeDirectory: homeDirectory,
413
414
configFile: homeDirectory
@@ -613,6 +614,7 @@ class AnalyticsImpl implements Analytics {
613
614
eventName: event.eventName,
614
615
eventData: event.eventData,
615
616
userProperty: _userProperty,
617
+ enabledFeatures: _enabledFeatures,
616
618
);
617
619
618
620
if (_enableAsserts) checkBody (body);
@@ -654,6 +656,7 @@ class AnalyticsImpl implements Analytics {
654
656
eventName: collectionEvent.eventName,
655
657
eventData: collectionEvent.eventData,
656
658
userProperty: _userProperty,
659
+ enabledFeatures: _enabledFeatures,
657
660
);
658
661
659
662
_logHandler.save (data: body);
@@ -664,6 +667,7 @@ class AnalyticsImpl implements Analytics {
664
667
clientId: clientId,
665
668
eventName: collectionEvent.eventName,
666
669
eventData: collectionEvent.eventData,
670
+ enabledFeatures: _enabledFeatures,
667
671
userProperty: _userProperty,
668
672
);
669
673
@@ -774,6 +778,7 @@ class FakeAnalytics extends AnalyticsImpl {
774
778
eventName: event.eventName,
775
779
eventData: event.eventData,
776
780
userProperty: _userProperty,
781
+ enabledFeatures: _enabledFeatures,
777
782
);
778
783
779
784
if (_enableAsserts) checkBody (body);
0 commit comments