hasAction property
bool
hasAction
Whether or not the widget has a non-null onPressed field
Implementation
bool get hasAction => widget.onPressed != null;
Whether or not the widget has a non-null onPressed field
bool get hasAction => widget.onPressed != null;