fromRawValue static method

InputImageRotation? fromRawValue(
  1. int rawValue
)

Implementation

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