getQualityUrl static method
Get quality url.
Implementation
static YoutubeVideoQualityUrl getQualityUrl(
int quality,
List<YoutubeVideoQualityUrl> videoUrls,
) {
return videoUrls.firstWhere(
(element) => element.quality == quality,
orElse: () => videoUrls.first,
);
}