hasAction property

bool hasAction

Whether or not the widget has a non-null onPressed field

Implementation

bool get hasAction => widget.onPressed != null;