enabled property

bool enabled
final

Whether the button is interactive.

When false, the button does not respond to taps. Defaults to true.

Implementation

final bool enabled;