getByValue static method

ImageFormat? getByValue(
  1. int? i
)

Implementation

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