SidebarItem constructor
const
SidebarItem({
- Key? key,
- required void onTap(),
- required Widget icon,
- required String text,
- required String keyIndex,
- required String selectedIndex,
- Color itemTextColor = Colors.black,
- Color darkItemTextColor = Colors.white,
- Color itemBackgroundColor = const Color(0xffDFDEE5),
- Color darkItemBackgroundColor = const Color(0xff39383D),
- Color selectedItemTextColor = Colors.black,
- Color darkSelectedItemTextColor = Colors.white,
Creates a SidebarItem.
The onTap
, icon
, text
, keyIndex
, itemTextColor
, darkItemTextColor
, and selectedIndex
parameters
must not be null.
Implementation
const SidebarItem({
super.key,
required this.onTap,
required this.icon,
required this.text,
required this.keyIndex,
required this.selectedIndex,
this.itemTextColor = Colors.black,
this.darkItemTextColor = Colors.white,
this.itemBackgroundColor = const Color(0xffDFDEE5),
this.darkItemBackgroundColor = const Color(0xff39383D),
this.selectedItemTextColor = Colors.black,
this.darkSelectedItemTextColor = Colors.white
});