copyWith method
Creates a copy of the Attachment instance and allows for non-destructive mutation.
Implementation
Attachment copyWith({
String? contentType,
String? language,
String? data,
String? url,
String? size,
String? hash,
String? title,
String? creation,
}) =>
Attachment(
contentType: contentType ?? this.contentType,
language: language ?? this.language,
data: data ?? this.data,
url: url ?? this.url,
size: size ?? this.size,
hash: hash ?? this.hash,
title: title ?? this.title,
creation: creation ?? this.creation,
);