getByValue static method

CameraPosition? getByValue(
  1. int? i
)

Implementation

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