getAsAttachment method

Attachment getAsAttachment(
  1. String key
)

Implementation

Attachment getAsAttachment(String key) {
  var attachment = _getAttachment()
    ..fileName = key
    ..location = Location.attachment;
  return attachment;
}