StreamValidationConnector<K, I>.seeded constructor

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

Creates connector with seeded data

Implementation

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