recordFile method

Future<void> recordFile(
  1. AudioRecorder recorder,
  2. RecordConfig config
)

Implementation

Future<void> recordFile(AudioRecorder recorder, RecordConfig config) async {
  final path = await _getPath();

  await recorder.start(config, path: path);
}