call method
Executes the validation function on value.
Returns errorMessage if validation fails, or null if validation passes.
Implementation
String? call(String? value) => validate(value) == null ? null : errorMessage;
Executes the validation function on value.
Returns errorMessage if validation fails, or null if validation passes.
String? call(String? value) => validate(value) == null ? null : errorMessage;