file static method

Future<UShareResult> file(
  1. String path, {
  2. String? text,
  3. String? subject,
  4. String? name,
  5. String? mimeType,
  6. Rect? origin,
})

Shares one file from disk (Linux: shows it in the file manager). UShare.file("/path/report.pdf")

Implementation

static Future<UShareResult> file(String path, {String? text, String? subject, String? name, String? mimeType, Rect? origin}) => UShareChannel.share(
  files: <UShareFile>[UShareFile.path(path, name: name, mimeType: mimeType)],
  text: text,
  subject: subject,
  origin: origin,
);