getByValue static method

OutputImageCropAspectRatio? getByValue(
  1. int? i
)

Implementation

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