fromRawValue static method

InputImageFormat? fromRawValue(
  1. int rawValue
)

Implementation

static InputImageFormat? fromRawValue(int rawValue) {
  try {
    return InputImageFormat.values
        .firstWhere((element) => element.rawValue == rawValue);
  } catch (_) {
    return null;
  }
}