index property Null safety

int index

Implementation

int get index {
  switch (this) {
    case BCSType.good:
      return 0;
    case BCSType.moderate:
      return 1;
    case BCSType.bad:
      return 2;
  }
}