YaruPopupMenuButton<T> constructor
const
YaruPopupMenuButton<T> ({
- Key? key,
- T? initialValue,
- required Widget child,
- required List<
PopupMenuEntry< itemBuilder(),T> > - ValueChanged<
T> ? onSelected, - VoidCallback? onCanceled,
- String? tooltip,
- PopupMenuPosition position = PopupMenuPosition.over,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 5),
- EdgeInsetsGeometry childPadding = const EdgeInsets.symmetric(horizontal: 5),
- bool enabled = true,
- Offset offset = const Offset(0, kYaruTitleBarItemHeight),
- bool? enableFeedback,
- BoxConstraints? constraints,
- double? elevation,
- ButtonStyle? style,
- MouseCursor? mouseCursor,
- 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,
});