Open Paroca72 opened 2 years ago
It seems the field is always required
final ValidationBuilder validationBuilder = ValidationBuilder().email('Wrong Email Format'); String? _errorText = validationBuilder.build()(null);
Result "The field is required"
final ValidationBuilder validationBuilder = ValidationBuilder().email('Wrong Email Format'); String? _errorText = validationBuilder.build()('');
Result "Wrong Email Format"
You can set optional parameter when constructing ValidationBuilder to set value as optional (not-required). In that case if null or empty string value is provided the validation will be passed.
optional
ValidationBuilder
It seems the field is always required
Result "The field is required"
Result "Wrong Email Format"