hasPressHandler property Null safety

bool hasPressHandler

Implementation

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