VoiceNote class

Implemented types

Constructors

VoiceNote({int duration, String waveform, String mimeType, File voice})
Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel. duration Duration of the voice note, in seconds; as defined by the sender. waveform A waveform representation of the voice note in 5-bit format . mimeType MIME type of the file; as defined by the sender . voice File containing the voice note
VoiceNote.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

duration int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
mimeType String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
voice File
read / write
waveform 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
"voiceNote"