getByValue static method

RoadSurface getByValue(
  1. int value
)

Implementation

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