enabled property

bool get enabled

Get if the button is enabled or not

Implementation

bool get enabled => onPressed != null;