Audio class
Describes an audio file. Audio is usually in MP3 or M4A format.
- Inheritance
- Available Extensions
Constructors
-
Audio({required int duration, required String title, required String performer, required String file_name, required String mime_type, Minithumbnail? album_cover_minithumbnail, Thumbnail? album_cover_thumbnail, required List<
Thumbnail> external_album_covers, required File audio, int? extra, int? clientId}) - Describes an audio file. Audio is usually in MP3 or M4A format
Properties
- album_cover_minithumbnail ↔ Minithumbnail?
-
The minithumbnail of the album cover; may be null.
read / write
- album_cover_thumbnail ↔ Thumbnail?
-
The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is supposed to be extracted from the downloaded audio file; may be null.
read / write
- audio ↔ File
-
File containing the audio.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- duration ↔ int
-
Duration of the audio, in seconds; as defined by the sender.
read / write
-
external_album_covers
↔ List<
Thumbnail> -
Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.
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
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- mime_type ↔ String
-
The MIME type of the file; as defined by the sender.
read / write
- performer ↔ String
-
Performer of the audio; as defined by the sender.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- title ↔ String
-
Title of the audio; as defined by the sender.
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
Constants
- CONSTRUCTOR → const String
-
@type
"audio"