VoiceNote constructor

const VoiceNote({
  1. required int duration,
  2. required String waveform,
  3. required String mimeType,
  4. required 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

Implementation

const VoiceNote({
  required this.duration,
  required this.waveform,
  required this.mimeType,
  required this.voice,
});