SuperValidationValue<T> constructor

SuperValidationValue<T>({
  1. SuperValidationValueFunc<T>? validateFunc,
  2. SuperValidationStore<T>? store,
})

Implementation

SuperValidationValue({
  this.validateFunc,
  this.store,
}) {
  if (store != null) {
    _streamSubscription = streamValue.listen((value) {
      store?.valueStored = value;
    });
    final stored = store?.valueStored;
    if (stored != null) {
      value = stored;
    }
  }
}