enabled property
Whether this button is enabled and accepts user input.
When false, the button is displayed in a disabled state and ignores user interactions. When null, enabled state is determined by whether onPressed is provided.
Implementation
final bool? enabled;