BartMenuRoute.bottomBar constructor
BartMenuRoute.bottomBar({
- required String label,
- required IconData icon,
- required String path,
- required BartPageBuilder pageBuilder,
- RouteTransitionsBuilder? transitionsBuilder,
- Duration? transitionDuration,
- bool cache = true,
- IconData? selectedIcon,
Implementation
factory BartMenuRoute.bottomBar({
required String label,
required IconData icon,
required String path,
required BartPageBuilder pageBuilder,
RouteTransitionsBuilder? transitionsBuilder,
Duration? transitionDuration,
bool cache = true,
IconData? selectedIcon,
}) =>
BartMenuRoute._(
label: label,
icon: icon,
path: path,
cache: cache,
type: BartMenuRouteType.bottomNavigation,
pageBuilder: pageBuilder,
settings: RouteSettings(name: path),
transitionsBuilder: transitionsBuilder,
transitionDuration: transitionDuration,
selectedIcon: selectedIcon,
showBottomBar: true,
);