Audio class

Inheritance

Constructors

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

Properties

albumCoverMinithumbnail Minithumbnail?
albumCoverMinithumbnail The minithumbnail of the album cover; may be null
final
albumCoverThumbnail Thumbnail?
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 file; may be null
final
audio File
audio File containing the audio
final
clientId int?
client identifier
no setterinherited
duration int
duration Duration of the audio, in seconds; as defined by the sender
final
extra → dynamic
callback sign
no setterinherited
fileName String
fileName Original name of the file; as defined by the sender
final
hashCode int
The hash code for this object.
no setterinherited
mimeType String
mimeType The MIME type of the file; as defined by the sender
final
performer String
performer 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 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, File? audio}) Audio
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String