isReadOnly property

  1. @override
bool isReadOnly
override

If true the TextField is clickable and selectable but not editable.

Implementation

@override
bool get isReadOnly {
  ReactiveStatelessWidget.addToObs?.call(this);
  getState;
  if (_isReadOnly != null) {
    return _isReadOnly!;
  }
  final isFormReadOnly = (form as InjectedFormImp?)?._isReadOnly;
  if (isFormReadOnly != null) {
    return isFormReadOnly;
  }
  return false;
}
  1. @override
void isReadOnly=(bool? val)
override

If true the TextField is clickable and selectable but not editable.

Implementation

@override
set isReadOnly(bool? val) {
  if (val != null && val != _isReadOnly) {
    notify();
  }
  _isReadOnly = val;
}