NiceNavRail constructor

const NiceNavRail({
  1. Key? key,
  2. required List<NiceNavRailItem> items,
  3. required int selectedIndex,
  4. ValueChanged<int>? onDestinationSelected,
  5. Widget? leading,
  6. Widget? trailing,
  7. bool extended = false,
  8. double minWidth = 72,
  9. double minExtendedWidth = 200,
  10. Color? backgroundColor,
  11. Color? selectedIconColor,
  12. Color? unselectedIconColor,
})

Implementation

const NiceNavRail({
  super.key,
  required this.items,
  required this.selectedIndex,
  this.onDestinationSelected,
  this.leading,
  this.trailing,
  this.extended = false,
  this.minWidth = 72,
  this.minExtendedWidth = 200,
  this.backgroundColor,
  this.selectedIconColor,
  this.unselectedIconColor,
});