enabled property

bool enabled

Whether the button is enabled or not.

Implementation

bool get enabled => onPressed != null || onLongPress != null;