noSpace static method
Implementation
static Validator<String> noSpace({String? error}) => (value, context) {
if (!context.resources.spacePattern.hasMatch(value)) {
return (true, null);
}
return (false, error ?? context.errors.passwordErrors.noSpace());
};