Migrate command usage values (#139383)
Related to the tracker issue: - https://github.com/flutter/flutter/issues/128251 This PR migrates the `Usage.command` static method that sent custom dimensions for each command (if applicable). The screenshot below shows the different places where the `usageValues` getter is overwritten to return the necessary custom dimensions for that command. <img width="285" alt="image" src="https://github.com/flutter/flutter/assets/42216813/e32d5100-0e17-4a4d-8f21-327a8c113a19">
This commit is contained in:
@@ -373,7 +373,7 @@ bool analyticsTimingEventExists({
|
||||
};
|
||||
|
||||
for (final Event e in sentEvents) {
|
||||
final Map<String, Object?> eventData = e.eventData;
|
||||
final Map<String, Object?> eventData = <String, Object?>{...e.eventData};
|
||||
eventData.remove('elapsedMilliseconds');
|
||||
|
||||
if (const DeepCollectionEquality().equals(lookup, eventData)) {
|
||||
|
||||
Reference in New Issue
Block a user