copyWith method

Document copyWith({
  1. String? fileName,
  2. String? mimeType,
  3. Minithumbnail? minithumbnail,
  4. Thumbnail? thumbnail,
  5. File? document,
})

Implementation

Document copyWith({
  String? fileName,
  String? mimeType,
  Minithumbnail? minithumbnail,
  Thumbnail? thumbnail,
  File? document,
}) =>
    Document(
      fileName: fileName ?? this.fileName,
      mimeType: mimeType ?? this.mimeType,
      minithumbnail: minithumbnail ?? this.minithumbnail,
      thumbnail: thumbnail ?? this.thumbnail,
      document: document ?? this.document,
    );