copyWith method
AttachmentMetadata
copyWith(
{ - User? author,
- String? content,
- DateTime? created,
- String? filename,
- int? id,
- String? mimeType,
- Map<String, dynamic>? properties,
- String? self,
- int? size,
- 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,
);
}