HorizonNavigationView constructor
Implementation
HorizonNavigationView({Key? key,
this.tabIndex = 0,
this.onTabIndexChange,
this.navItems = const [],
this.navigationStyle})
: super(
destinations: [
...navItems.map((e) {
return NavigationDestination(
icon: e.icon, label: e.label);
})
],
selectedIndex: tabIndex,
onDestinationSelected: (int index) {
onTabIndexChange?.call(index);
},
);