popupMenuButton<T> method

  1. @override
PopupMenuButton<T> popupMenuButton<T>(
  1. AppModel app,
  2. BuildContext context, {
  3. String? tooltip,
  4. Widget? child,
  5. Widget? icon,
  6. required PopupMenuItemBuilder<T> itemBuilder,
  7. 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);
}