link method
Shares a Clikgate link (url, e.g. https://inv.myapp.com/summer) with
an optional message in front of it.
Without app, opens the share menu; the app the person picks is
recorded when the phone reports it. With app, opens that app where the
phone can, else the share menu. shareUrls: the link's share_urls from
your backend (the Clikgate API's link object), used as they are. Returns
true when app itself opened, false when the share menu was shown.
Throws ClikgateException(share_unavailable) when nothing can share.
Implementation
Future<bool> link(String url,
{String? message, ShareApp? app, Map<ShareApp, String>? shareUrls}) =>
_call({
'url': url,
'message': message,
'app': app?.value,
if (shareUrls != null)
'shareUrls': {for (final e in shareUrls.entries) e.key.value: e.value},
});