Video class

Available extensions
Annotations
  • @freezed

Constructors

Video.new({@Default(appBskyEmbedVideo) @JsonKey(name: r'$type') String $type, @BlobConverter() required Blob video, @VideoCaptionConverter() List<VideoCaption>? captions, String? alt, @AspectRatioConverter() AspectRatio? aspectRatio, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
Video.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
alt String?
Alt text description of the video, for accessibility.
no setterinherited
aspectRatio AspectRatio?
no setterinherited
captions List<VideoCaption>?
no setterinherited
copyWith → $VideoCopyWith<Video>
no setterinherited
hasAlt bool

Available on Video, provided by the $VideoExtension extension

Returns true if alt is not null, otherwise false.
no setter
hasAspectRatio bool

Available on Video, provided by the $VideoExtension extension

Returns true if aspectRatio is not null, otherwise false.
no setter
hasCaptions bool

Available on Video, provided by the $VideoExtension extension

Returns true if captions is not null, otherwise false.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNotAlt bool

Available on Video, provided by the $VideoExtension extension

Returns true if alt is null, otherwise false.
no setter
hasNotAspectRatio bool

Available on Video, provided by the $VideoExtension extension

Returns true if aspectRatio is null, otherwise false.
no setter
hasNotCaptions bool

Available on Video, provided by the $VideoExtension extension

Returns true if captions is null, otherwise false.
no setter
hasNotUnknown bool

Available on Video, provided by the $VideoExtension extension

Returns true if this object has not unknown objects, otherwise false.
no setter
hasUnknown bool

Available on Video, provided by the $VideoExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
video Blob
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited