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:
Elias Yishak
2023-12-07 09:12:03 -07:00
committed by GitHub
parent 2c22944dd5
commit 2b218fd1fc
18 changed files with 475 additions and 42 deletions

View File

@@ -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)) {