readOnly property

bool readOnly
final

Whether the text can be changed. Defaults to false.

When this is set to true, the text cannot be modified by any shortcut or keyboard operation. The text is still selectable.

Implementation

final bool readOnly;