getByValue static method

DocReaderOrientation? getByValue(
  1. int? i
)

Implementation

static DocReaderOrientation? getByValue(int? i) {
  if (i == null) return null;
  try {
    return DocReaderOrientation.values.firstWhere((x) => x.value == i);
  } catch (_) {
    return DocReaderOrientation.UNKNOWN;
  }
}