Route constructor

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

Implementation

const Route({
  required this.distance,
  required this.duration,
  required this.polylineEncoded,
  this.instructions = const <RouteInstruction>[],
  this.alternativesRoads,
  this.polyline = const <LngLat>[],
});