getByValue static method

NotificationButtonType getByValue(
  1. int value
)

Implementation

static NotificationButtonType getByValue(int value) {
  return NotificationButtonType.values.firstWhere((x) => x.value == value);
}