fromValue static method

DartNotifyAction fromValue(
  1. int value
)

Implementation

static DartNotifyAction fromValue(int value) => switch (value) {
      0 => TASK_FINISH,
      1 => TASK_WARNING,
      2 => TASK_ERROR,
      3 => TASK_LOG,
      _ => throw ArgumentError("Unknown value for DartNotifyAction: $value"),
    };