coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case loaded:
      return 0;
    case loading:
      return 1;
    case failedToLoad:
      return 2;
    case notLoaded:
      return 3;
    case unknown:
      return -1;
  }
}