getAsInline method

Attachment getAsInline(
  1. String key
)

Implementation

Attachment getAsInline(String key) {
  var attachment = _getAttachment()
    ..location = Location.inline
    ..cid = '<$key>';
  attachment.additionalHeaders['X-Attachment-Id'] = key;
  return attachment;
}