OpenMobileNavigator constructor
const
OpenMobileNavigator({})
Creates an OpenMobileNavigator with the given configuration.
items is the list of navigation items. initialIndex is the index of the initially selected item. primaryColor is the color for the selected item. decorationColor is the color for the background decoration. inactiveColor is the color for the non-selected items.
Implementation
const OpenMobileNavigator({
super.key,
required this.items,
this.initialIndex = 0,
this.primaryColor = Colors.blue,
this.decorationColor = Colors.white,
this.inactiveColor = Colors.grey,
}) : assert(items.length >= 2);