name method

String name()

returns a String value for ImageFormatGroup returns 'unknown' if platform is not supported or if ImageFormatGroup is not supported for the platform

Implementation

String name() {
  switch (this) {
    case ImageFormatGroup.bgra8888:
      return 'bgra8888';
    case ImageFormatGroup.yuv420:
      return 'yuv420';
    case ImageFormatGroup.jpeg:
      return 'jpeg';
    case ImageFormatGroup.nv21:
      return 'nv21';
    case ImageFormatGroup.unknown:
      return 'unknown';
  }
}