merge method

Attachment merge(
  1. Attachment? other
)

Implementation

Attachment merge(Attachment? other) {
  if (other == null) return this;
  return copyWith(
    type: other.type,
    titleLink: other.titleLink,
    title: other.title,
    thumbUrl: other.thumbUrl,
    text: other.text,
    pretext: other.pretext,
    ogScrapeUrl: other.ogScrapeUrl,
    imageUrl: other.imageUrl,
    footerIcon: other.footerIcon,
    footer: other.footer,
    fields: other.fields,
    fallback: other.fallback,
    color: other.color,
    authorName: other.authorName,
    authorLink: other.authorLink,
    authorIcon: other.authorIcon,
    assetUrl: other.assetUrl,
    actions: other.actions,
    originalWidth: other.originalWidth,
    originalHeight: other.originalHeight,
    file: other.file,
    uploadState: other.uploadState,
    extraData: other.extraData,
  );
}