Adds a custom inline validator.
Validator custom(String? Function(String? value) validator) { _rules.add(CustomRule(validator)); return this; }