fromValue static method

PMDarwinAVFileType? fromValue(
  1. int? value
)

Implementation

static PMDarwinAVFileType? fromValue(int? value) {
  if (value == null) {
    return null;
  }
  if (_valuesMap == null) {
    _valuesMap = <int, PMDarwinAVFileType>{};
    for (final v in PMDarwinAVFileType.values) {
      _valuesMap![v.value] = v;
    }
  }
  return _valuesMap![value];
}