copyWith method

  1. @override
PdPacket copyWith({
  1. DateTime? timestamp,
  2. Position? position,
  3. Map<String, dynamic>? extra,
})
override

Implementation

@override
PdPacket copyWith({
  DateTime? timestamp,
  Position? position,
  Map<String, dynamic>? extra,
}) {
  return PdPacket(
    timestamp: timestamp ?? this.timestamp,
    position: position ?? this.position,
    extra: extra ?? this.extra,
  );
}