MenuAction.text constructor

MenuAction.text(
  1. {required String text,
  2. required MenuActionCallBack onTap,
  3. TextStyle textStyle = const TextStyle(),
  4. double leftTextOffset = 100,
  5. IconData? icon,
  6. IconData? trailingIcon}
)

Implementation

factory MenuAction.text({
  required String text,
  required MenuActionCallBack onTap,
  TextStyle textStyle = const TextStyle(),
  double leftTextOffset = 100,
  IconData? icon,
  IconData? trailingIcon,
}) =>
    TextMenuAction(
      text: text,
      onTap: onTap,
      icon: icon,
      trailingIcon: trailingIcon,
      style: textStyle,
      leftTextOffset: leftTextOffset,
    );