code property Null safety

String code

Implementation

String get code {
  switch (this) {
    case BCSType.good:
      return "G";
    case BCSType.moderate:
      return "M";
    case BCSType.bad:
      return "B";
  }
}