FluentNavigation constructor
FluentNavigation(
{ - Key? key,
- required List<AdaptiveGroupDestination> groupDestinations,
- required bool showOnlyModalNavigationDrawerOnDesktop,
- required bool showOnlyNavigationRailOnDesktop,
})
Implementation
FluentNavigation(
{super.key,
required this.groupDestinations,
required this.showOnlyModalNavigationDrawerOnDesktop,
required this.showOnlyNavigationRailOnDesktop})
: assert(
groupDestinations
.expand((group) => group.destinations)
.where(
(destination) => destination.showOnDrawerSidebar == true)
.length >=
2,
'There must be at least 2 AdaptiveDestinations with showOnDrawerSidebar = true',
),
assert(showOnlyModalNavigationDrawerOnDesktop == false ||
showOnlyNavigationRailOnDesktop == false);