handleDeepLink method

Future<Map<String, dynamic>?> handleDeepLink(
  1. Uri uri, {
  2. String type = 'open',
})

Convenience: parse a deep-link uri for link_click_id and attribute an open, returning the deep-link data. Not needed with linksEnabled, which reports opens automatically.

Implementation

Future<Map<String, dynamic>?> handleDeepLink(
  Uri uri, {
  String type = 'open',
}) {
  final clickId = uri.queryParameters['link_click_id'];
  if (clickId != null) _seenClicks.add(clickId);
  return attribute(type: type, clickId: clickId, slug: _shortLinkSlug(uri));
}