Animation class

Describes an animation file. The animation must be encoded in GIF or MPEG4 format.

Inheritance
Available Extensions

Constructors

Animation({required int duration, required int width, required int height, required String file_name, required String mime_type, required bool has_stickers, Minithumbnail? minithumbnail, Thumbnail? thumbnail, required File animation, int? extra, int? clientId})
Describes an animation file. The animation must be encoded in GIF or MPEG4 format

Properties

animation File
File containing the animation.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
duration int
Duration of the animation, in seconds; as defined by the sender.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
file_name String
Original name of the file; as defined by the sender.
read / write
has_stickers bool
True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
height int
Height of the animation.
read / write
mime_type String
MIME type of the file, usually "image/gif" or "video/mp4".
read / write
minithumbnail Minithumbnail?
Animation minithumbnail; may be null.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
thumbnail Thumbnail?
Animation thumbnail in JPEG or MPEG4 format; may be null.
read / write
width int
Width of the animation.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) Animation?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"animation"