NiceSideNav constructor

const NiceSideNav({
  1. Key? key,
  2. required List<NiceSideNavItem> items,
  3. String? selectedId,
  4. ValueChanged<String>? onSelect,
  5. bool collapsed = false,
  6. ValueChanged<bool>? onCollapsedChanged,
  7. Widget? header,
  8. Widget? footer,
  9. double expandedWidth = 260,
  10. double collapsedWidth = 72,
  11. Color? backgroundColor,
  12. Duration animationDuration = const Duration(milliseconds: 200),
})

Implementation

const NiceSideNav({
  super.key,
  required this.items,
  this.selectedId,
  this.onSelect,
  this.collapsed = false,
  this.onCollapsedChanged,
  this.header,
  this.footer,
  this.expandedWidth = 260,
  this.collapsedWidth = 72,
  this.backgroundColor,
  this.animationDuration = const Duration(milliseconds: 200),
});