getLargestAssets method
Implementation
List<AssetDetail> getLargestAssets(int limit) {
final sorted = List<AssetDetail>.from(assets)
..sort((a, b) => b.info.size.compareTo(a.info.size));
return sorted.take(limit).toList();
}
List<AssetDetail> getLargestAssets(int limit) {
final sorted = List<AssetDetail>.from(assets)
..sort((a, b) => b.info.size.compareTo(a.info.size));
return sorted.take(limit).toList();
}