parseFilterQuality function
Implementation
FilterQuality? parseFilterQuality(String? quality, [FilterQuality? defValue]) {
if (quality == null) {
return defValue;
}
return FilterQuality.values.firstWhereOrNull(
(e) => e.name.toLowerCase() == quality.toLowerCase()) ??
defValue;
}