copyWith method

UnsentMessages copyWith({
  1. MessageType? messageType,
  2. String? message,
  3. String? messageTime,
  4. String? filePath,
  5. String? platform,
  6. String? name,
  7. String? conversationUid,
})

Implementation

UnsentMessages copyWith({
  MessageType? messageType,
  String? message,
  String? messageTime,
  String? filePath,
  String? platform,
  String? name,
  String? conversationUid,
}) {
  return UnsentMessages(
    messageType: messageType ?? this.messageType,
    message: message ?? this.message,
    messageTime: messageTime ?? this.messageTime,
    filePath: filePath ?? this.filePath,
    platform: platform ?? this.platform,
    name: name ?? this.name,
    conversationUid: conversationUid ?? this.conversationUid,
  );
}