copyWith method

UDocRecord copyWith({
  1. UDocMetadata? metadata,
  2. String? coverPath,
  3. DateTime? lastOpenedAt,
  4. bool? favorite,
  5. List<String>? collections,
})

Implementation

UDocRecord copyWith({UDocMetadata? metadata, String? coverPath, DateTime? lastOpenedAt, bool? favorite, List<String>? collections}) => UDocRecord(
  fingerprint: fingerprint,
  path: path,
  kind: kind,
  sizeBytes: sizeBytes,
  addedAt: addedAt,
  metadata: metadata ?? this.metadata,
  coverPath: coverPath ?? this.coverPath,
  lastOpenedAt: lastOpenedAt ?? this.lastOpenedAt,
  favorite: favorite ?? this.favorite,
  collections: collections ?? this.collections,
);