copyWith method

Attachment copyWith({
  1. Uri? uri,
  2. String? mimeType,
  3. String? fileName,
})

Implementation

Attachment copyWith({
  Uri? uri,
  String? mimeType,
  String? fileName,
}) {
  return Attachment(
    uri: uri ?? this.uri,
    mimeType: mimeType ?? this.mimeType,
    fileName: fileName ?? this.fileName,
  );
}