coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case backwardDiagonal:
      return 0;
    case cross:
      return 1;
    case diagonalCross:
      return 2;
    case forwardDiagonal:
      return 3;
    case horizontal:
      return 4;
    case null_:
      return 5;
    case solid:
      return 6;
    case vertical:
      return 7;
  }
}