copyWith method

  1. @override
PcPacket copyWith({
  1. DateTime? timestamp,
  2. int? commandId,
  3. String? message,
})
override

Implementation

@override
PcPacket copyWith({
  DateTime? timestamp,
  int? commandId,
  String? message,
}) {
  return PcPacket(
    timestamp: timestamp ?? this.timestamp,
    commandId: commandId ?? this.commandId,
    message: message ?? this.message,
  );
}