copyWith method
TePacket
copyWith({
- DateTime? timestamp,
- String? tripId,
- double? distanceTraveled,
- double? maxSpeed,
- Duration? duration,
override
Implementation
@override
TePacket copyWith({
DateTime? timestamp,
String? tripId,
double? distanceTraveled,
double? maxSpeed,
Duration? duration,
}) {
return TePacket(
timestamp: timestamp ?? this.timestamp,
tripId: tripId ?? this.tripId,
distanceTraveled: distanceTraveled ?? this.distanceTraveled,
maxSpeed: maxSpeed ?? this.maxSpeed,
duration: duration ?? this.duration,
);
}