NavbarRouter constructor
const
NavbarRouter({
- Key? key,
- required List<
DestinationRouter> destinations, - required WidgetBuilder errorBuilder,
- bool shouldPopToBaseRoute = true,
- dynamic onChanged()?,
- NavbarDecoration? decoration,
- bool isDesktop = false,
- int initialIndex = 0,
- NavbarType type = NavbarType.standard,
- Curve destinationAnimationCurve = Curves.fastOutSlowIn,
- int destinationAnimationDuration = 300,
- BackButtonBehavior backButtonBehavior = BackButtonBehavior.exit,
- dynamic onCurrentTabClicked()?,
- bool hideBadgeOnPageChanged = true,
- bool onBackButtonPressed()?,
Take a look at the readme for more information on how to use this package.
Please help me improve this package. Found a bug? Please file an issue here or File a feature request by clicking here
Implementation
const NavbarRouter(
{Key? key,
required this.destinations,
required this.errorBuilder,
this.shouldPopToBaseRoute = true,
this.onChanged,
this.decoration,
this.isDesktop = false,
this.initialIndex = 0,
this.type = NavbarType.standard,
this.destinationAnimationCurve = Curves.fastOutSlowIn,
this.destinationAnimationDuration = 300,
this.backButtonBehavior = BackButtonBehavior.exit,
this.onCurrentTabClicked,
this.hideBadgeOnPageChanged = true,
this.onBackButtonPressed})
: assert(destinations.length >= 2,
"Destinations length must be greater than or equal to 2"),
super(key: key);