copyWith method

BriefRouteInfo copyWith({
  1. Duration? duration,
  2. BriefExtraRouteInfo? extraInfo,
})

Implementation

BriefRouteInfo copyWith({
  Duration? duration,
  BriefExtraRouteInfo? extraInfo
}) {
  return BriefRouteInfo(
    duration: duration ?? this.duration,
    extraInfo: extraInfo ?? this.extraInfo
  );
}