fromInt static method

SpendMethod fromInt(
  1. int val
)

Implementation

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