SidebarXItem constructor
const
SidebarXItem({
- String? label,
- IconData? icon,
- @Deprecated('Use iconBuilder instead') Widget? iconWidget,
- SidebarXItemBuilder? iconBuilder,
- dynamic onTap()?,
- dynamic onLongPress()?,
- dynamic onSecondaryTap()?,
- bool selectable = true,
Implementation
const SidebarXItem({
this.label,
this.icon,
@Deprecated('Use iconBuilder instead') this.iconWidget,
this.iconBuilder,
this.onTap,
this.onLongPress,
this.onSecondaryTap,
this.selectable = true,
}) : assert(
(icon != null || iconBuilder != null || iconWidget != null),
'You can create SidebarXItem with IconData? icon or with Widget? iconWidget',
);