enabled property

bool enabled

Get if the button is enabled or not

Implementation

bool get enabled => onPressed != null;