checkValid property

ValidityCheck get checkValid

Implementation

ValidityCheck get checkValid => _checkValid;
  1. @Deprecated('Use angular2 forms API instead')
  2. @Input()
set checkValid (ValidityCheck? validFn)

Implementation

@Deprecated('Use angular2 forms API instead')
@Input()
set checkValid(ValidityCheck? validFn) {
  if (validFn == _checkValid) return;

  if (validFn != null) {
    // Identical doesn't work on functions
    _checkValid = validFn;
    _changeDetector.markForCheck();
    if (_cd?.control != null) {
      // Validator was changed. Rerun validation.
      _cd?.control?.updateValueAndValidity();
    }
    updateBottomPanelState();
  }
}