Audio class final

Audio (audio) - basic class

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

  • duration: Duration of the audio, in seconds; as defined by the sender.
  • title: Title of the audio; as defined by the sender.
  • performer: Performer of the audio; as defined by the sender.
  • fileName: Original name of the file; as defined by the sender.
  • mimeType: The MIME type of the file; as defined by the sender.
  • albumCoverMinithumbnail: The minithumbnail of the album cover; may be null (optional).
  • albumCoverThumbnail: 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 (optional).
  • externalAlbumCovers: Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.
  • audio: File containing the audio.
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})
Audio (audio) - basic class
const
Audio.fromJson(Map<String, dynamic> json)
Parse from a 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?
Client ID, from which this object was received
no setterinherited
currentObjectId → String
TDLib object type for current class instance
no setteroverride
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
A sign from TDLib update
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
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() → String
Convert model to TDLib JSON format, encoded into String.
override

Operators

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

Constants

defaultObjectId → const String
TDLib object type