coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case circle:
      return 0;
    case cross:
      return 1;
    case diamond:
      return 2;
    case square:
      return 3;
    case triangle:
      return 4;
    case x:
      return 5;
  }
}