copyWith method
HistoryEntry
copyWith({
- String? path,
- DateTime? timestamp,
- NavigationType? type,
- 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,
);
}