link static method

Future<UShareResult> link(
  1. String url, {
  2. String? message,
  3. String? subject,
  4. String? title,
  5. Rect? origin,
})

Shares a link with a rich preview on iOS/macOS; message goes before it. UShare.link("https://x.com/p/1", message: "New product")

Implementation

static Future<UShareResult> link(String url, {String? message, String? subject, String? title, Rect? origin}) =>
    UShareChannel.share(text: message, url: Uri.tryParse(url), subject: subject, title: title, origin: origin);