enabled property

  1. @override
bool enabled
final

Whether the form is able to receive user input.

Defaults to true. If autovalidateMode is not AutovalidateMode.disabled, the field will be auto validated. Likewise, if this field is false, the widget will not be validated regardless of autovalidateMode.

Implementation

@override
// If false, grays out the field and makes it unresponsive
final bool enabled;