enabled property

bool get enabled

Whether the button is enabled or disabled.

Implementation

bool get enabled => onPressed != null;