popupMenuButton<T> method
PopupMenuButton<T>
popupMenuButton<T>(
- AppModel app,
- BuildContext context, {
- String? tooltip,
- Widget? child,
- Widget? icon,
- required PopupMenuItemBuilder<
T> itemBuilder, - PopupMenuItemSelected<
T> ? onSelected,
override
Implementation
@override
PopupMenuButton<T> popupMenuButton<T>(AppModel app, BuildContext context,
{String? tooltip,
Widget? child,
Widget? icon,
required PopupMenuItemBuilder<T> itemBuilder,
PopupMenuItemSelected<T>? onSelected}) {
return PopupMenuButton<T>(
color: _style.monaStyleAttributesModel.popupMenuButtonColor != null
? RgbHelper.color(
rgbo: _style.monaStyleAttributesModel.popupMenuButtonColor)
: Colors.grey,
tooltip: tooltip,
elevation: 10,
padding: EdgeInsets.all(8.0),
child: child,
icon: icon,
itemBuilder: itemBuilder,
onSelected: onSelected);
}