coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case unknown:
      return -1;
    case autoCompletePolygon:
      return 0;
    case circle:
      return 1;
    case downArrow:
      return 2;
    case ellipse:
      return 3;
    case freeHand:
      return 4;
    case leftArrow:
      return 5;
    case line:
      return 6;
    case none:
      return 7;
    case point:
      return 8;
    case polygon:
      return 9;
    case rectangle:
      return 10;
    case rightArrow:
      return 11;
    case text:
      return 12;
    case triangle:
      return 13;
    case upArrow:
      return 14;
  }
}