sortByBitrate method
Gets the video streams sorted by bitrate in ascending order. This returns new list without editing the original list.
Implementation
List<T> sortByBitrate() =>
toList()..sort((a, b) => b.bitrate.compareTo(a.bitrate));
Gets the video streams sorted by bitrate in ascending order. This returns new list without editing the original list.
List<T> sortByBitrate() =>
toList()..sort((a, b) => b.bitrate.compareTo(a.bitrate));