popupMenuItemBarList function

List<PopupMenuItem<MenuModel>> popupMenuItemBarList({
  1. bool showShare = false,
})

Implementation

List<PopupMenuItem<MenuModel>> popupMenuItemBarList({bool showShare = false}) =>
    <PopupMenuItem<MenuModel>>[
      if (showShare)
        PopupMenuItem<MenuModel>(
            enabled: showShare,
            value: menuShare,
            child: ListTile(
              contentPadding: const EdgeInsets.only(left: 0, right: 0),
              leading: Icon(menuShare.icon),
              title: Text('${menuShare.title}'),
            )),
      if (showShare)
        PopupMenuItem<MenuModel>(
            enabled: showShare,
            value: menuCopyLyricShare,
            child: ListTile(
              contentPadding: const EdgeInsets.only(left: 0, right: 0),
              leading: Icon(menuCopyLyricShare.icon),
              title: Text('${menuCopyLyricShare.title}'),
            )),
    ];