Audio class final

Describes an audio file. Audio is usually in MP3 or M4A format

Inheritance

Constructors

Audio({required int duration, required String title, required String performer, required String fileName, required String mimeType, Minithumbnail? albumCoverMinithumbnail, Thumbnail? albumCoverThumbnail, required List<Thumbnail> externalAlbumCovers, required File audio})
Describes an audio file. Audio is usually in MP3 or M4A format
const
Audio.fromJson(Map<String, dynamic> json)
Parses a Audio from TDLib JSON.
factory

Properties

albumCoverMinithumbnail → Minithumbnail?
The minithumbnail of the album cover; may be null
final
albumCoverThumbnail → 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
final
audio → File
File containing the audio
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
duration → int
Duration of the audio, in seconds; as defined by the sender
final
externalAlbumCovers → List<Thumbnail>
Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate
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
mimeType → String
The MIME type of the file; as defined by the sender
final
performer → String
Performer of the audio; as defined by the sender
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Title of the audio; as defined by the sender
final

Methods

copyWith({int? duration, String? title, String? performer, String? fileName, String? mimeType, Minithumbnail? albumCoverMinithumbnail()?, Thumbnail? albumCoverThumbnail()?, List<Thumbnail>? externalAlbumCovers, File? audio}) → Audio
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.