MenuRouter constructor

MenuRouter({
  1. Key? key,
  2. String? initialRoute,
  3. required BartRouteBuilder routesBuilder,
  4. List<NavigatorObserver>? navigatorObservers,
  5. 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);