getState property

T getState

Implementation

T get getState {
  if (form == null) {
    return snapValue.state;
  }
  final _isEnabled = (form as InjectedFormImp)._isEnabled;
  if (_isEnabled != null) {
    this._isEnabled = _isEnabled;
    // (form as InjectedFormImp?)?._isEnabled = null;
  } else {
    // this._isEnabled = _initialIsEnabled;
  }
  if (_isEnabled != true) {
    final isReadOnly = (form as InjectedFormImp?)?._isReadOnly;
    if (isReadOnly != null) {
      _isReadOnly = isReadOnly;
    } else {
      // this.isReadOnly = _initialIsReadOnly;
    }
  }
  return snapValue.state;
}