NavigationSidebar<T> constructor

const NavigationSidebar<T>({
  1. Key? key,
  2. List<NavSection<T>>? sections,
  3. NavNodeId? active,
  4. Set<NavNodeId>? initiallyExpanded,
  5. NavigationSidebarController<T>? controller,
  6. NavSidebarMode mode = NavSidebarMode.expanded,
  7. NavSidebarSlotBuilder? header,
  8. NavSidebarSlotBuilder? footer,
  9. String drawerTitle = 'Navigation',
  10. bool showGuides = true,
  11. bool railFlyouts = true,
  12. ValueChanged<NavNode<T>>? onNavigate,
})

Implementation

const NavigationSidebar({
  super.key,
  this.sections,
  this.active,
  this.initiallyExpanded,
  this.controller,
  this.mode = NavSidebarMode.expanded,
  this.header,
  this.footer,
  this.drawerTitle = 'Navigation',
  this.showGuides = true,
  this.railFlyouts = true,
  this.onNavigate,
}) : assert(sections != null || controller != null, 'Provide sections or a controller.');