SidebarMenuItem constructor

const SidebarMenuItem({
  1. Key? key,
  2. required String title,
  3. required String icon,
  4. required bool isExpanded,
  5. required bool isActive,
  6. bool isSubItem = false,
  7. bool hasSubItems = false,
  8. bool isSubExpanded = false,
  9. String? badge,
  10. required VoidCallback onTap,
  11. required Color themeColor,
})

Implementation

const SidebarMenuItem({
  Key? key,
  required this.title,
  required this.icon,
  required this.isExpanded,
  required this.isActive,
  this.isSubItem = false,
  this.hasSubItems = false,
  this.isSubExpanded = false,
  this.badge,
  required this.onTap, required this.themeColor,
}) : super(key: key);