shareXFiles static method

Future<void> shareXFiles(
  1. List<XFile> file, {
  2. String? subject,
  3. String? text,
  4. Rect? sharePositionOrigin,
})

Implementation

static Future<void> shareXFiles(
  List<XFile> file, {
  String? subject,
  String? text,
  Rect? sharePositionOrigin,
}) async {
  try {
    await Share.shareXFiles(
      file,
      subject: subject,
      text: text,
      sharePositionOrigin: sharePositionOrigin,
    );
  } catch (e) {
    LoggerService.logError('Error sharing shareXFile: $e');
  }
}