navigate method

  1. @override
Future<void> navigate(
  1. Uri link,
  2. LinkRouterData data

This is called for executing a navigation when some component calls LinkRouter.navigateFromUri or RouterConfiguration.navigateFromUri.

The data's LinkRouterData.navigatorState should be used for executing navigations as a response of navigation request for link.


Future<void> navigate(
  Uri link,
  LinkRouterData data,
) {
  return onNavigationRequest(link, data);