valueOf static method

LabelPreference? valueOf(
  1. String? value
)

Implementation

static LabelPreference? valueOf(final String? value) {
  if (value == null) return null;

  for (final $value in values) {
    if ($value.name == value) {
      return $value;
    }
  }

  return null;
}