delegate method

AutoRouterDelegate delegate({
  1. String? navRestorationScopeId,
  2. WidgetBuilder? placeholder,
  3. NavigatorObserversBuilder navigatorObservers = AutoRouterDelegate.defaultNavigatorObserversBuilder,
  4. DeepLinkBuilder? deepLinkBuilder,
  5. bool rebuildStackOnDeepLink = false,
  6. Listenable? reevaluateListenable,
})

Builds a lazy instance of AutoRouterDelegate _lazyRootDelegate is only built one time

Implementation

AutoRouterDelegate delegate({
  String? navRestorationScopeId,
  WidgetBuilder? placeholder,
  NavigatorObserversBuilder navigatorObservers =
      AutoRouterDelegate.defaultNavigatorObserversBuilder,
  DeepLinkBuilder? deepLinkBuilder,
  bool rebuildStackOnDeepLink = false,
  Listenable? reevaluateListenable,
}) {
  return _lazyRootDelegate ??= AutoRouterDelegate(
    this,
    navRestorationScopeId: navRestorationScopeId,
    navigatorObservers: navigatorObservers,
    placeholder: placeholder,
    rebuildStackOnDeepLink: rebuildStackOnDeepLink,
    deepLinkBuilder: deepLinkBuilder,
    reevaluateListenable: reevaluateListenable,
  );
}