Leg constructor

const Leg({
  1. Time? arrivalTime,
  2. Time? departureTime,
  3. Distance? distance,
  4. DirectionsDuration? duration,
  5. DirectionsDuration? durationInTraffic,
  6. String? endAddress,
  7. GeoCoord? endLocation,
  8. String? startAddress,
  9. GeoCoord? startLocation,
  10. List<Step>? steps,
})

Implementation

const Leg({
  this.arrivalTime,
  this.departureTime,
  this.distance,
  this.duration,
  this.durationInTraffic,
  this.endAddress,
  this.endLocation,
  this.startAddress,
  this.startLocation,
  this.steps,
});