copyWith method

UserMessagingVO copyWith({
  1. String? uid,
  2. DocumentSnapshot<Object?>? snapshot,
  3. String? userId,
  4. Map<String, FCMToken>? fcmTokens,
  5. DateTime? createdAt,
  6. DateTime? updatedAt,
})

Implementation

UserMessagingVO copyWith({
  String? uid,
  DocumentSnapshot? snapshot,
  String? userId,
  Map<String, FCMToken>? fcmTokens,
  DateTime? createdAt,
  DateTime? updatedAt,
}) {
  return UserMessagingVO(
    uid: uid ?? this.uid,
    snapshot: snapshot ?? this.snapshot,
    fcmTokens: fcmTokens ?? this.fcmTokens,
    userId: userId ?? this.userId,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}