EmbedImagesViewImage constructor

  1. @JsonSerializable(includeIfNull: false)
const EmbedImagesViewImage({
  1. @Default('app.bsky.embed.images#viewImage') String $type,
  2. required String thumb,
  3. required String fullsize,
  4. required String alt,
  5. @AspectRatioConverter() AspectRatio? aspectRatio,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedImagesViewImage({
  @Default('app.bsky.embed.images#viewImage') String $type,

  /// Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
  required String thumb,

  /// Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.
  required String fullsize,

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

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