copyWith method

CollectionEntry copyWith({
  1. String? id,
  2. String? collection,
  3. String? foreignId,
  4. Map<String, Object>? data,
  5. DateTime? createdAt,
  6. DateTime? updatedAt,
})

Copies this CollectionEntry to a new instance.

Implementation

CollectionEntry copyWith({
  String? id,
  String? collection,
  String? foreignId,
  Map<String, Object>? data,
  DateTime? createdAt,
  DateTime? updatedAt,
}) =>
    CollectionEntry(
      id: id ?? this.id,
      collection: collection ?? this.collection,
      foreignId: foreignId ?? this.foreignId,
      data: data ?? this.data,
      createdAt: createdAt ?? this.createdAt,
      updatedAt: updatedAt ?? this.updatedAt,
    );