fromValue static method

Looks up a value by its proto wire int. Throws if not found.

Implementation

static ExtensionRangeOptionsVerificationState fromValue(int? value) {
  return ExtensionRangeOptionsVerificationState.values.firstWhere(
    (e) => e.value == value,
    orElse:
        () =>
            throw ItemNotFoundException(
              name: "ExtensionRangeOptionsVerificationState",
              value: value,
            ),
  );
}