We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8e8d89 commit 735fc29Copy full SHA for 735fc29
packages/flutter_tools/lib/src/license_collector.dart
@@ -82,11 +82,10 @@ class LicenseCollector {
82
}
83
84
85
- final List<String> combinedLicensesList = packageLicenses.keys
86
- .map<String>((String license) {
87
- final List<String> packageNames = packageLicenses[license]!.toList()
88
- ..sort();
89
- return '${packageNames.join('\n')}\n\n$license';
+ final List<String> combinedLicensesList = packageLicenses.entries
+ .map<String>((MapEntry<String, Set<String>> entry) {
+ final List<String> packageNames = entry.value.toList()..sort();
+ return '${packageNames.join('\n')}\n\n${entry.key}';
90
}).toList();
91
combinedLicensesList.sort();
92
0 commit comments