fromInt static method

ReceiveMethod fromInt(
  1. int val
)

Implementation

static ReceiveMethod fromInt(int val) {
  return ReceiveMethod.values.firstWhere((e) => e.value == val, orElse: () => ReceiveMethod.Undefined);
}