YaruPopupMenuButton<T> constructor

const YaruPopupMenuButton<T>({
  1. Key? key,
  2. T? initialValue,
  3. required Widget child,
  4. required List<PopupMenuEntry<T>> itemBuilder(
    1. BuildContext
    ),
  5. ValueChanged<T>? onSelected,
  6. VoidCallback? onCanceled,
  7. String? tooltip,
  8. PopupMenuPosition position = PopupMenuPosition.over,
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 5),
  10. EdgeInsetsGeometry childPadding = const EdgeInsets.symmetric(horizontal: 5),
  11. bool enabled = true,
  12. Offset offset = const Offset(0, kYaruTitleBarItemHeight),
  13. bool? enableFeedback,
  14. BoxConstraints? constraints,
  15. double? elevation,
  16. ButtonStyle? style,
  17. MouseCursor? mouseCursor,
  18. Widget? icon,
})

Implementation

const YaruPopupMenuButton({
  super.key,
  this.initialValue,
  required this.child,
  required this.itemBuilder,
  this.onSelected,
  this.onCanceled,
  this.tooltip,
  this.position = PopupMenuPosition.over,
  this.padding = const EdgeInsets.symmetric(horizontal: 5),
  this.childPadding = const EdgeInsets.symmetric(horizontal: 5),
  this.enabled = true,
  this.offset = const Offset(0, kYaruTitleBarItemHeight),
  this.enableFeedback,
  this.constraints,
  this.elevation,
  this.style,
  this.mouseCursor,
  this.icon,
});