getByValue static method

RoadRule getByValue(
  1. int value
)

Implementation

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