Leg constructor

Leg({
  1. required double duration,
  2. required List<Step> steps,
  3. required double distance,
})

Implementation

Leg({
      required this.duration,
      required this.steps,
      required this.distance,
    });