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