MenuRouter constructor
MenuRouter({
- Key? key,
- String? initialRoute,
- required BartRouteBuilder routesBuilder,
- required Widget child,
Implementation
MenuRouter({
Key? key,
String? initialRoute,
required BartRouteBuilder routesBuilder,
List<NavigatorObserver>? navigatorObservers,
required this.child,
}) : routerDelegate = MenuRouterDelegate(
routesBuilder.call(), initialRoute, navigatorObservers),
super(key: key, child: child);