delegate method
AutoRouterDelegate
delegate({
- WidgetBuilder? placeholder,
- DeepLinkBuilder? deepLinkBuilder,
- bool rebuildStackOnDeepLink = false,
- 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,
);
}