onLinkReceived static method

void onLinkReceived(
  1. String uri, {
  2. String? source,
})

Record uri in the Deep Links panel.

source is an optional label (e.g. 'go_router', 'uni_links') shown in the inspector to identify where the link was captured.

Implementation

static void onLinkReceived(String uri, {String? source}) {
  DeepLinkStore.add(DeepLinkEntry(uri: uri, source: source));
}