getBugPriorityValue function Null safety

String getBugPriorityValue(
  1. BugPriority bugPriority
)

Implementation

String getBugPriorityValue(BugPriority bugPriority) {
  switch (bugPriority) {
    case BugPriority.LOW:
      return "LOW";
    case BugPriority.MEDIUM:
      return "MEDIUM";
    case BugPriority.HIGH:
      return "HIGH";
    default:
      return "MEDIUM";
  }
}