stop method

Future<String?> stop()

Stops recording session and release internal recorder resource.

Returns the output path if any.

Implementation

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

  final path = await RecordPlatform.instance.stop(_recorderId);

  await _stopRecordStream();

  return path;
}