shareFile method
Shares a recording via Android's native chooser. Pass uri (a
content:// URI, from a MediaStore/Downloads recording) if you have
one; otherwise pass path (a plain file — the legacy fallback or a
developer's own chosen directory), which gets resolved to a shareable
URI via a bundled FileProvider first. Exactly one of uri/path
must be given.
Implementation
@override
Future<void> shareFile({
String? uri,
String? path,
required String mimeType,
}) async {
shareCalls.add((uri: uri, path: path, mimeType: mimeType));
}