copyWith method
Implementation
Segment copyWith({
num? distance,
num? duration,
List<StepWay>? steps,
num? ascent,
num? descent,
}) =>
Segment(
distance: distance ?? this.distance,
duration: duration ?? this.duration,
steps: steps ?? this.steps,
ascent: ascent ?? this.ascent,
descent: descent ?? this.descent,
);