valueOf static method

LabelPreference? valueOf(
  1. String value
)

Implementation

static LabelPreference? valueOf(final String value) {
  for (final $value in values) {
    if ($value.name == value) {
      return $value;
    }
  }

  return null;
}