getByValue static method

ImageFormat getByValue(
  1. int value
)

Implementation

static ImageFormat getByValue(int value) {
  return ImageFormat.values.firstWhere((x) => x.rawValue == value);
}