toEmbedImage method

Embed toEmbedImage({
  1. required String alt,
  2. ImageAspectRatio? aspectRatio,
})

Returns the single Embed image representation of this blob.

Implementation

Embed toEmbedImage({
  required String alt,
  ImageAspectRatio? aspectRatio,
}) =>
    Embed.images(
      data: EmbedImages(
        images: [
          toImage(
            alt: alt,
            aspectRatio: aspectRatio,
          ),
        ],
      ),
    );