cancel method

Future<void> cancel()
inherited

Stops and discards/deletes the file/blob.

Implementation

Future<void> cancel() async {
  return _safeCall(() async {
    _amplitudeTimer?.cancel();

    await _platform.cancel(_recorderId);

    return _stopRecordStream();
  });
}