enabled property
Whether the button is enabled or disabled.
To enable a button, set its onPressed property to a non-null value.
Implementation
bool get enabled => onPressed != null;
Whether the button is enabled or disabled.
To enable a button, set its onPressed property to a non-null value.
bool get enabled => onPressed != null;