label property

String get label

Human-readable name.

Implementation

String get label {
  switch (this) {
    case Severity.critical:
      return 'Critical';
    case Severity.high:
      return 'High';
    case Severity.medium:
      return 'Medium';
    case Severity.low:
      return 'Low';
    case Severity.info:
      return 'Info';
  }
}