parseFilterQuality function

FilterQuality? parseFilterQuality(
  1. String? quality, [
  2. FilterQuality? defValue
])

Implementation

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