downloadsByPlatform property

Map<String, List<DownloadAsset>> get downloadsByPlatform

Implementation

Map<String, List<DownloadAsset>> get downloadsByPlatform {
  final grouped = <String, List<DownloadAsset>>{};
  for (final asset in downloads) {
    grouped.putIfAbsent(asset.platform, () => []).add(asset);
  }
  return grouped;
}