shouldOverrideUrlLoading method

  1. @override
bool shouldOverrideUrlLoading(
  1. String url
)
override

Implementation

@override
bool shouldOverrideUrlLoading(String url) {
  if (url.startsWith(_NAVIGATION_URL_PREFIX)) {
    final route = url.substring(_NAVIGATION_URL_PREFIX.length);
    Navigator.pushNamed(contextProvider(), route);
    return true;
  }
  return false;
}