getByValue static method

SignManagementAction? getByValue(
  1. int? i
)

Implementation

static SignManagementAction? getByValue(int? i) {
  if (i == null) return null;
  try {
    return SignManagementAction.values.firstWhere((x) => x.value == i);
  } catch (_) {
    return SignManagementAction.UNDEFINED;
  }
}