copyWith method

HistoryEntry copyWith({
  1. String? path,
  2. DateTime? timestamp,
  3. NavigationType? type,
  4. Duration? timeOnRoute,
})

Implementation

HistoryEntry copyWith({
  String? path,
  DateTime? timestamp,
  NavigationType? type,
  Duration? timeOnRoute,
}) {
  return HistoryEntry(
    path: path ?? this.path,
    timestamp: timestamp ?? this.timestamp,
    type: type ?? this.type,
    timeOnRoute: timeOnRoute ?? this.timeOnRoute,
  );
}