fromValue static method

GuardType fromValue(
  1. int value
)

Implementation

static GuardType fromValue(int value) {
  return values.firstWhere(
    (element) => element.value == value,
    orElse: () => throw MessageException(
        "No GuardType found matching the specified value",
        details: {"value": value}),
  );
}