handleDeepLink static method

bool handleDeepLink(
  1. Uri uri
)

Routes uri: a rewards link opens the rewards page and returns true; anything else returns false so the host continues its own routing. Never throws.

Implementation

static bool handleDeepLink(Uri uri) {
  try {
    if (isRewardsDeepLink(uri)) {
      openRewards();
      return true;
    }
  } catch (_) {}
  return false;
}