Leg constructor

Leg({
  1. int? duration,
  2. String? speed,
  3. Instruction? instruction,
  4. List<Obstacle>? obstacles,
  5. DateTime? departureTime,
  6. DateTime? arrivalTime,
  7. Point1? departurePoint,
  8. Point1? arrivalPoint,
  9. Path? path,
  10. List<RouteOption>? routeOptions,
  11. Identifier? mode,
  12. List<Disruption>? disruptions,
  13. List<PlannedWork>? plannedWorks,
  14. double? distance,
})

Implementation

Leg({
  this.duration,
  this.speed,
  this.instruction,
  this.obstacles,
  this.departureTime,
  this.arrivalTime,
  this.departurePoint,
  this.arrivalPoint,
  this.path,
  this.routeOptions,
  this.mode,
  this.disruptions,
  this.plannedWorks,
  this.distance,
});