copyWith method

Segment copyWith({
  1. num? distance,
  2. num? duration,
  3. List<StepWay>? steps,
  4. num? ascent,
  5. num? descent,
})

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,
    );