copyWith method

AttachmentMetadata copyWith({
  1. User? author,
  2. String? content,
  3. DateTime? created,
  4. String? filename,
  5. int? id,
  6. String? mimeType,
  7. Map<String, dynamic>? properties,
  8. String? self,
  9. int? size,
  10. String? thumbnail,
})

Implementation

AttachmentMetadata copyWith(
    {User? author,
    String? content,
    DateTime? created,
    String? filename,
    int? id,
    String? mimeType,
    Map<String, dynamic>? properties,
    String? self,
    int? size,
    String? thumbnail}) {
  return AttachmentMetadata(
    author: author ?? this.author,
    content: content ?? this.content,
    created: created ?? this.created,
    filename: filename ?? this.filename,
    id: id ?? this.id,
    mimeType: mimeType ?? this.mimeType,
    properties: properties ?? this.properties,
    self: self ?? this.self,
    size: size ?? this.size,
    thumbnail: thumbnail ?? this.thumbnail,
  );
}