getByValue static method

ScreenOrientation? getByValue(
  1. int? i
)

Implementation

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