copyWith method

Data copyWith({
  1. String? companyUid,
  2. String? contactUid,
  3. DateTime? createdAt,
  4. int? id,
  5. String? message,
  6. String? messageFrom,
  7. String? messageType,
  8. String? platform,
  9. String? recipientId,
  10. String? senderId,
  11. String? status,
  12. String? timestamp,
  13. String? twitterMessageUid,
  14. String? uid,
  15. DateTime? updatedAt,
})

Implementation

Data copyWith({
  String? companyUid,
  String? contactUid,
  DateTime? createdAt,
  int? id,
  String? message,
  String? messageFrom,
  String? messageType,
  String? platform,
  String? recipientId,
  String? senderId,
  String? status,
  String? timestamp,
  String? twitterMessageUid,
  String? uid,
  DateTime? updatedAt,
}) {
  return Data(
    companyUid: companyUid ?? this.companyUid,
    contactUid: contactUid ?? this.contactUid,
    createdAt: createdAt ?? this.createdAt,
    id: id ?? this.id,
    message: message ?? this.message,
    messageFrom: messageFrom ?? this.messageFrom,
    messageType: messageType ?? this.messageType,
    platform: platform ?? this.platform,
    recipientId: recipientId ?? this.recipientId,
    senderId: senderId ?? this.senderId,
    status: status ?? this.status,
    timestamp: timestamp ?? this.timestamp,
    twitterMessageUid: twitterMessageUid ?? this.twitterMessageUid,
    uid: uid ?? this.uid,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}