name method

String name()

Gets the name of the value.

Implementation

String name() {
  switch (_value) {
    case 'JPEG':
      return 'JPEG';
    case 'PNG':
      return 'PNG';
    case 'WEBP':
      return 'WEBP';
    case 'WEBP_LOSSLESS':
      return 'WEBP_LOSSLESS';
    case 'WEBP_LOSSY':
      return 'WEBP_LOSSY';
  }
  return _value.toString();
}