OSRMRoad constructor

const OSRMRoad({
  1. required double distance,
  2. required double duration,
  3. required String? polylineEncoded,
  4. List<Route>? alternativesRoads,
  5. List<LngLat>? polyline = const <LngLat>[],
})

Implementation

const OSRMRoad({
  required super.distance,
  required super.duration,
  required super.polylineEncoded,
  super.alternativesRoads,
  super.polyline,
})  : _isError = false,
      _roadLegs = const <RoadLeg>[];