validate method
Validation rules in a string with label or custom messages
Implementation
ValidatorX validate({
Map<String, String>? customMessages,
String? attribute,
}) {
assert(
split("|").isNotEmpty, "validate cannot be called on an empty string");
return Valiadator()
.make(split("|"), attribute: attribute, customMessages: customMessages);
}