Leg constructor

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

Implementation

Leg({
  required this.steps,
  required this.startAddress,
  required this.endAddress,
  this.durationInTraffic,
  this.arrivalTime,
  this.departureTime,
  required Location startLocation,
  required Location endLocation,
  required Value duration,
  required Value distance,
}) : super(
        startLocation: startLocation,
        endLocation: endLocation,
        duration: duration,
        distance: distance,
      );