SidebarItem constructor

const SidebarItem({
  1. Widget? leading,
  2. required Widget label,
  3. Color? selectedColor,
  4. Color? unselectedColor,
  5. ShapeBorder? shape,
  6. FocusNode? focusNode,
  7. String? semanticLabel,
  8. List<SidebarItem>? disclosureItems,
  9. Widget? trailing,
})

Creates a sidebar item.

Implementation

const SidebarItem({
  this.leading,
  required this.label,
  this.selectedColor,
  this.unselectedColor,
  this.shape,
  this.focusNode,
  this.semanticLabel,
  this.disclosureItems,
  this.trailing,
});