getByValue static method

OnlineMode? getByValue(
  1. int? i
)

Implementation

static OnlineMode? getByValue(int? i) {
  if (i == null) return null;
  return OnlineMode.values.firstWhere((x) => x.value == i);
}