fromValue static method

RendererPriority? fromValue(
  1. int? value
)

Implementation

static RendererPriority? fromValue(int? value) {
  if (value != null) {
    try {
      return RendererPriority.values
          .firstWhere((element) => element.toValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}