fromValue static method

NotificationPriority fromValue(
  1. int value
)

Creates a notification priority from a numeric value.

Implementation

static NotificationPriority fromValue(int value) {
  return values.firstWhere(
    (NotificationPriority e) => e.value == value,
    orElse: () => NotificationPriority.defaultPriority,
  );
}