addAttachment method

void addAttachment(
  1. AttachmentBuilder attachment
)

Add attachment

Implementation

void addAttachment(AttachmentBuilder attachment) {
  files ??= [];

  files!.add(attachment);
}