Leg constructor
Leg({
- int? duration,
- String? speed,
- Instruction? instruction,
- List<
Obstacle> ? obstacles, - DateTime? departureTime,
- DateTime? arrivalTime,
- Point1? departurePoint,
- Point1? arrivalPoint,
- Path? path,
- List<
RouteOption> ? routeOptions, - Identifier? mode,
- List<
Disruption> ? disruptions, - List<
PlannedWork> ? plannedWorks, - 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,
});