fromString static method

ImageQuality? fromString(
  1. String? value
)

Create from string value

Implementation

static ImageQuality? fromString(String? value) {
  if (value == null) return null;
  switch (value.toLowerCase()) {
    case 'standard':
      return ImageQuality.standard;
    case 'hd':
      return ImageQuality.hd;
    case 'uhd':
      return ImageQuality.uhd;
    default:
      return null;
  }
}