readOnly property Null safety

bool? readOnly

If non-null, sets the SemanticsConfiguration.isReadOnly semantic to the given value.

Implementation

bool? get readOnly => _readOnly;
void readOnly=(bool? value)

Implementation

set readOnly(bool? value) {
  if (readOnly == value)
    return;
  _readOnly = value;
  markNeedsSemanticsUpdate();
}