FlipBoxNavigationBarItem constructor
FlipBoxNavigationBarItem({})
Creates an item which is used with FlipBoxNavigationBar.items.
The name
, selectedIcon
are required and must be non-null.
The selectedIcon
will be used if unselectedIcon
is null.
Implementation
FlipBoxNavigationBarItem({
required this.name,
required this.selectedIcon,
this.selectedBackgroundColor = Colors.blue,
this.unselectedBackgroundColor = Colors.lightBlue,
unselectedIcon,
}) : unselectedIcon = unselectedIcon ?? selectedIcon;