dispose method

Future<void> dispose()
inherited

Disposes the recorder.

Implementation

Future<void> dispose() {
  return _safeCall(() async {
    await _disposeAmplitude();
    await _disposeState();
    await _stopRecordStream();
    await _platform.dispose(_recorderId);
  });
}