copyWith method

  1. @override
ImPacket copyWith({
  1. DateTime? timestamp,
  2. String? chatId,
  3. String? message,
})
override

Implementation

@override
ImPacket copyWith({
  DateTime? timestamp,
  String? chatId,
  String? message,
}) {
  return ImPacket(
    timestamp: timestamp ?? this.timestamp,
    chatId: chatId ?? this.chatId,
    message: message ?? this.message,
  );
}