connectValidator method

ValidationConnector<K, I> connectValidator({
  1. required K field,
  2. required Validator<I> validator,
  3. bool clearOnChange = true,
  4. bool validateOnChange = false,
  5. bool validateOnAttach = false,
})

Connect validator to the Stream object

Implementation

ValidationConnector<K, I> connectValidator({
  required K field,
  required Validator<I> validator,
  bool clearOnChange = true,
  bool validateOnChange = false,
  bool validateOnAttach = false,
}) =>
    StreamValidationConnector<K, I>(
      field: field,
      stream: this,
      validator: validator,
      clearOnChange: clearOnChange,
      validateOnChange: validateOnChange,
      validateOnAttach: validateOnAttach,
    );