link property
Uri?
get
link
The shared text when it is a single link.
Implementation
Uri? get link {
final String? t = text?.trim();
if (t == null || t.contains(RegExp(r"\s"))) return null;
final Uri? uri = Uri.tryParse(t);
return uri != null && uri.hasScheme ? uri : null;
}