addAttachment method Null safety

void addAttachment(
  1. AttachmentBuilder attachment
)

Add attachment

Implementation

void addAttachment(AttachmentBuilder attachment) {
  if (this.files == null) {
    this.files = [];
  }

  this.files!.add(attachment);
}