isEnabled property

  1. @override
bool isEnabled
override

If false the associated TextField is disabled.

Implementation

@override
bool get isEnabled {
  ReactiveStatelessWidget.addToObs?.call(this);
  getState;
  if (_isEnabled != null) {
    return _isEnabled!;
  }
  final isFormEnabled = (form as InjectedFormImp?)?._isEnabled;
  if (isFormEnabled != null) {
    return isFormEnabled;
  }
  return true;
}
  1. @override
void isEnabled=(bool? val)
override

If false the associated TextField is disabled.

Implementation

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