EmbedVideo constructor

  1. @JsonSerializable.new(includeIfNull: false)
const EmbedVideo({
  1. @Default.new('app.bsky.embed.video') String $type,
  2. @BlobConverter() required Blob video,
  3. @EmbedVideoCaptionConverter() List<EmbedVideoCaption>? captions,
  4. String? alt,
  5. @AspectRatioConverter() AspectRatio? aspectRatio,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedVideo({
  @Default('app.bsky.embed.video') String $type,

  /// The mp4 video file. May be up to 100mb, formerly limited to 50mb.
  @BlobConverter() required Blob video,
  @EmbedVideoCaptionConverter() List<EmbedVideoCaption>? captions,

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

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