getByValue static method

DocReaderFrame? getByValue(
  1. String? i
)

Implementation

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