readOnly property

bool readOnly
final

Whether the field is read-only. Defaults to false; if true, prevents editing but allows focus.

Implementation

final bool readOnly;