popupMenuItem static method
Popup Menu Item
Implementation
static PopupMenuItem popupMenuItem(
{IconData? icon,
String? text,
dynamic value,
Color? iconColor,
Color? textColor}) {
return PopupMenuItem(
value: value,
child: rowContainer(margin: EdgeInsets.all(0), left: [
if (icon != null) Icon(icon, color: iconColor),
if (icon != null) TGView.emptySizedBox(width: 10),
if (text != null) Text(text, style: TextStyle(color: textColor))
]));
}