SuperValidationValue<T> constructor
SuperValidationValue<T> ({
- SuperValidationValueFunc<
T> ? validateFunc, - 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;
}
}
}