enabled property

bool enabled

Whether the button is enabled or disabled.

To enable a button, set its onChanged property to a non-null value.

Implementation

bool get enabled => onChanged != null;