tryParse static method

CockpitRevealAlignment? tryParse(
  1. Object? value
)

Implementation

static CockpitRevealAlignment? tryParse(Object? value) {
  if (value is! String || value.isEmpty) {
    return null;
  }
  for (final candidate in values) {
    if (candidate.name == value) {
      return candidate;
    }
  }
  return null;
}