InputAudio class final

An audio to be sent

Inheritance

Constructors

InputAudio({required InputFile audio, InputThumbnail? albumCoverThumbnail, required int duration, required String title, required String performer})
An audio to be sent
const
InputAudio.fromJson(Map<String, dynamic> json)
Parses a InputAudio from TDLib JSON.
factory

Properties

albumCoverThumbnail → InputThumbnail?
Thumbnail of the cover for the album; pass null to skip thumbnail uploading
final
audio → InputFile
Audio file to be sent
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
duration → int
Duration of the audio, in seconds; may be replaced by the server
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
performer → String
Performer of the audio; 0-64 characters, may be replaced by the server
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Title of the audio; 0-64 characters; may be replaced by the server
final

Methods

copyWith({InputFile? audio, InputThumbnail? albumCoverThumbnail()?, int? duration, String? title, String? performer}) → InputAudio
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.