cancel method

Future<void> cancel()

Stops and discards/deletes the file/blob.

Implementation

Future<void> cancel() async {
  _created ??= await _create();
  _amplitudeTimer?.cancel();

  return RecordPlatform.instance.cancel(_recorderId);
}