StoryVideo class final

Describes a video file sent in a story

Inheritance

Constructors

StoryVideo({required double duration, required int width, required int height, required bool hasStickers, required bool isAnimation, Minithumbnail? minithumbnail, Thumbnail? thumbnail, required int preloadPrefixSize, required File video})
Describes a video file sent in a story
const
StoryVideo.fromJson(Map<String, dynamic> json)
Parses a StoryVideo from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
duration → double
Duration of the video, in seconds
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasStickers → bool
True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets
final
height → int
Video height
final
isAnimation → bool
True, if the video has no sound
final
minithumbnail → Minithumbnail?
Video minithumbnail; may be null
final
preloadPrefixSize → int
Size of file prefix, which is supposed to be preloaded, in bytes
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumbnail → Thumbnail?
Video thumbnail in JPEG or MPEG4 format; may be null
final
video → File
File containing the video
final
width → int
Video width
final

Methods

copyWith({double? duration, int? width, int? height, bool? hasStickers, bool? isAnimation, Minithumbnail? minithumbnail()?, Thumbnail? thumbnail()?, int? preloadPrefixSize, File? video}) → StoryVideo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.