enabled property

bool? enabled
final

Whether the toggle button is enabled.

If null, the button is enabled only when onChanged is not null.

Implementation

final bool? enabled;