stop method

Future<String?> stop()
inherited

Stops recording session and release internal recorder resource.

Returns the output path if any.

Implementation

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

    final path = await _platform.stop(_recorderId);

    await _stopRecordStream();

    return path;
  });
}