StreamValidationConnector<K, I> constructor

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

Creates default connector

Implementation

StreamValidationConnector({
  required K field,
  required this.stream,
  required this.validator,
  this.validateOnChange = false,
  this.clearOnChange = true,
  this.validateOnAttach = false,
})  : assert(!clearOnChange || !validateOnChange),
      _lastValue = null,
      _hasValue = false,
      super(field);