SidebarItemData class

Holds data for a sidebar item, including icon, text, and tap action.

Constructors

SidebarItemData({required Widget icon, required String text, required String selectedIndex, required String keyIndex, required void onTap()})
Creates a sidebar item data object.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon of the sidebar item.
final
keyIndex String
The key index of the sidebar item.
final
onTap → void Function()
The callback function to be executed on tap.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex String
The index of the selected item.
final
text String
The text label of the sidebar item.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited