Segment constructor

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

Implementation

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