SidebarXItem constructor

const SidebarXItem({
  1. String? label,
  2. IconData? icon,
  3. @Deprecated('Use iconBuilder instead') Widget? iconWidget,
  4. SidebarXItemBuilder? iconBuilder,
  5. dynamic onTap()?,
  6. dynamic onLongPress()?,
  7. dynamic onSecondaryTap()?,
  8. 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',
      );