sortByVideoQuality method

List<T> sortByVideoQuality()

Gets the video streams sorted by highest video quality (then by framerate) in ascending order. This returns new list without editing the original list.

Implementation

List<T> sortByVideoQuality() => toList()
  ..sort((a, b) => b.framerate.compareTo(a.framerate))
  ..sort((a, b) => b.videoResolution.compareTo(a.videoResolution));