EmbedGalleryImage constructor

const EmbedGalleryImage({
  1. @Default.new('app.bsky.embed.gallery#image') String $type,
  2. @BlobConverter() required Blob image,
  3. required String alt,
  4. @AspectRatioConverter() required AspectRatio aspectRatio,
  5. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedGalleryImage({
  @Default('app.bsky.embed.gallery#image') String $type,
  @BlobConverter() required Blob image,

  /// Alt text description of the image, for accessibility.
  required String alt,
  @AspectRatioConverter() required AspectRatio aspectRatio,

  Map<String, dynamic>? $unknown,
}) = _EmbedGalleryImage;