addAttachment method

void addAttachment(
  1. Object key,
  2. dynamic attachment
)

Implementation

void addAttachment(Object key, dynamic attachment) {
  _attachments ??= {};
  _attachments![key] = attachment;
}