AIAttachment.imageUrl constructor

AIAttachment.imageUrl(
  1. String url
)

Creates an image attachment from a URL.

Implementation

factory AIAttachment.imageUrl(String url) {
  return AIAttachment(
    type: AIAttachmentType.image,
    url: url,
  );
}