BartMenuRoute.bottomBar constructor

BartMenuRoute.bottomBar({
  1. required String label,
  2. required IconData icon,
  3. required String path,
  4. required BartPageBuilder pageBuilder,
  5. RouteTransitionsBuilder? transitionsBuilder,
  6. Duration? transitionDuration,
  7. bool cache = true,
})

Implementation

factory BartMenuRoute.bottomBar({
  required String label,
  required IconData icon,
  required String path,
  required BartPageBuilder pageBuilder,
  RouteTransitionsBuilder? transitionsBuilder,
  Duration? transitionDuration,
  bool cache = true,
}) =>
    BartMenuRoute._(
      label: label,
      icon: icon,
      path: path,
      cache: cache,
      routingType: BartMenuRouteType.BOTTOM_NAV,
      pageBuilder: pageBuilder,
      settings: RouteSettings(name: path),
      transitionsBuilder: transitionsBuilder,
      transitionDuration: transitionDuration,
    );