coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case png:
      return 0;
    case png8:
      return 1;
    case png24:
      return 2;
    case png32:
      return 3;
    case jpg:
      return 4;
    case mixed:
      return 5;
    case lerc:
      return 6;
    case unknown:
      return -1;
  }
}