coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case default_:
      return 0;
    case png:
      return 1;
    case png8:
      return 2;
    case png24:
      return 3;
    case png32:
      return 4;
    case jpg:
      return 5;
    case jpgpng:
      return 6;
    case bmp:
      return 7;
    case gif:
      return 8;
    case tiff:
      return 9;
    case unknown:
      return -1;
  }
}