copyWith method

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

Implementation

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