initFile method
Future<void>
initFile(
- String filename, {
- required int sampleRate,
- required int channels,
- required SoundFormat format,
override
Implementation
@override
Future<void> initFile(
String filename, {
required int sampleRate,
required int channels,
required SoundFormat format,
}) async {
this.filename = filename;
this.sampleRate = sampleRate;
this.channels = channels;
this.format = format;
state = RecorderState.ready;
}