Road constructor

Road({
  1. required double distance,
  2. required double duration,
  3. required String? polylineEncoded,
  4. List<Road>? alternativesRoads,
})

Implementation

Road({
  required this.distance,
  required this.duration,
  required this.polylineEncoded,
  List<Road>? alternativesRoads,
}) {
  _alternativesRoads = alternativesRoads;
}