sortByBitrate method

List<T> sortByBitrate()

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));