SResizableMenuNoWrapper constructor

const SResizableMenuNoWrapper({
  1. Key? key,
  2. SMenuStyle? style = const SMenuStyle(),
  3. SMenuController? controller,
  4. List<SMenuItem>? items,
  5. Widget builder(
    1. BuildContext context
    )?,
  6. Widget? header,
  7. Widget? footer,
  8. ScrollPhysics? scrollPhysics,
  9. Axis? direction = Axis.vertical,
  10. Duration? duration = const Duration(milliseconds: 250),
  11. SMenuPosition? position = SMenuPosition.left,
  12. bool? enableSelector = false,
  13. bool? resizable = true,
  14. Color? barColor,
  15. Color? barHoverColor,
  16. double? barSize,
  17. double? barHoverSize,
})

Implementation

const SResizableMenuNoWrapper({
  super.key,
  super.style,
  super.controller,
  super.items,
  super.builder,
  super.header,
  super.footer,
  super.scrollPhysics,
  super.direction,
  super.duration,
  super.position,
  this.enableSelector = false,
  this.resizable = true,
  this.barColor,
  this.barHoverColor,
  this.barSize,
  this.barHoverSize,
}) : assert(
        !(builder == null && items == null),
        "FAILED ASSERT - builder | items != null: The menu requires either builder or items arguments to be populated.",
      );