isEnabled property

bool isEnabled
final

Whether the button is enabled and can be pressed.

When false, the button will be disabled and onPressed will be ignored. Defaults to true.

Implementation

final bool isEnabled;