popupMenuItem static method

PopupMenuItem popupMenuItem({
  1. IconData? icon,
  2. String? text,
  3. dynamic value,
  4. Color? iconColor,
  5. Color? textColor,
})

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))
      ]));
}