getByValue static method

ImageType? getByValue(
  1. int? i
)

Implementation

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