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) async {
      await store?.setValueStored(value);
    });
  }

  _initStored();
}