plugintestXItem constructor

const plugintestXItem({
  1. String? label,
  2. IconData? icon,
  3. Widget? iconWidget,
  4. dynamic onTap()?,
  5. dynamic onLongPress()?,
  6. dynamic onSecondaryTap()?,
})

Implementation

const plugintestXItem({
  this.label,
  this.icon,
  this.iconWidget,
  this.onTap,
  this.onLongPress,
  this.onSecondaryTap,
}) : assert(
        (icon != null || iconWidget != null) &&
            (icon == null || iconWidget == null),
        'You can create SidebarXItem with IconData? icon or with Widget? iconWidget',
      );