NiceSideNav constructor
const
NiceSideNav({
- Key? key,
- required List<
NiceSideNavItem> items, - String? selectedId,
- ValueChanged<
String> ? onSelect, - bool collapsed = false,
- ValueChanged<
bool> ? onCollapsedChanged, - Widget? header,
- double expandedWidth = 260,
- double collapsedWidth = 72,
- Color? backgroundColor,
- 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),
});