getByValue static method

TrafficScoreState getByValue(
  1. int value
)

Implementation

static TrafficScoreState getByValue(int value) {
  return TrafficScoreState.values.firstWhere((x) => x.rawValue == value);
}