isInteractive property

bool isInteractive

Whether value of this control can be changed by user interaction.

The control is considered interactive if the onChanged callback is non-null. If the callback is null, then the control is disabled, and non-interactive. A disabled checkbox, for example, is displayed using a grey color and its value cannot be changed.

Implementation

bool get isInteractive => onChanged != null;