dispose method

Future<void> dispose()

Release the recorder. The manager is inert afterwards.

Implementation

Future<void> dispose() async {
  _stopAudioLevelMonitoring();
  if (_isRecording) {
    await cancel();
  }
  await _recorder.dispose();
}