Audio class

Implemented types

Constructors

Audio({int duration, String title, String performer, String fileName, String mimeType, Minithumbnail albumCoverMinithumbnail, PhotoSize albumCoverThumbnail, File audio})
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 . albumCoverThumbnail The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null . audio File containing the audio
Audio.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

albumCoverMinithumbnail Minithumbnail
read / write
albumCoverThumbnail PhotoSize
read / write
audio File
read / write
duration int
read / write
fileName String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
mimeType String
read / write
performer String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title String
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"audio"