fromValue static method
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,
);
}