shareFiles static method
Implementation
static Future<bool> shareFiles(List<String> paths, {String? text}) async {
final result = await SharePlus.instance.share(
ShareParams(files: kIsWeb ? [] : paths.map(XFile.new).toList(), text: text ?? ''),
);
return result.status == ShareResultStatus.success;
}