coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case manyToMany:
      return 0;
    case oneToMany:
      return 1;
    case oneToOne:
      return 2;
    case _unknown:
      return -1;
  }
}