DipNav.builder constructor
DipNav.builder({
- GlobalKey<
NavigatorState> ? key, - required DipNavRoute initRoute,
- required Widget builder(
- DipNavDelegate delegate,
- DipNavParser parser,
- DipNavDispatcher dispatcher
- DipNavRoute? notFoundRoute,
- List<
DipNavRoute> ? routes, - TransitionDelegate? transitionDelegate,
Builder of DipNav widget
initRoute
notFoundRoute
routes
List of
transitionDelegate
Implementation
factory DipNav.builder({
GlobalKey<NavigatorState>? key,
required DipNavRoute initRoute,
required Widget Function(DipNavDelegate delegate, DipNavParser parser,
DipNavDispatcher dispatcher)
builder,
DipNavRoute? notFoundRoute,
List<DipNavRoute>? routes,
List<NavigatorObserver>? dipNavObservers,
TransitionDelegate<dynamic>? transitionDelegate,
}) {
final dipNav = DipNavRouter(
key: key,
initRoute: initRoute,
notFoundRoute: notFoundRoute,
routes: routes,
dipNavObservers: dipNavObservers,
transitionDelegate: transitionDelegate,
);
return DipNav(
key: key,
router: dipNav,
child: Builder(
builder: (context) =>
builder(dipNav.delegate, dipNav.parser, dipNav.dispatcher),
),
);
}