Video class final
Describes a video file
Constructors
- Video({required int duration, required int width, required int height, required String fileName, required String mimeType, required bool hasStickers, required bool supportsStreaming, Minithumbnail? minithumbnail, Thumbnail? thumbnail, required File video})
-
Describes a video file
const
-
Video.fromJson(Map<
String, dynamic> json) -
Parses a Video from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- duration → int
-
Duration of the video, in seconds; as defined by the sender
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- fileName → String
-
Original name of the file; as defined by the sender
final
- 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; as defined by the sender
final
- mimeType → String
-
MIME type of the file; as defined by the sender
final
- minithumbnail → Minithumbnail?
-
Video minithumbnail; may be null
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsStreaming → bool
-
True, if the video is supposed to be streamed
final
- thumbnail → Thumbnail?
-
Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null
final
- video → File
-
File containing the video
final
- width → int
-
Video width; as defined by the sender
final
Methods
-
copyWith(
{int? duration, int? width, int? height, String? fileName, String? mimeType, bool? hasStickers, bool? supportsStreaming, Minithumbnail? minithumbnail()?, Thumbnail? thumbnail()?, File? video}) → Video -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.