required static method
Checks that the string is not null then checks if the string is empty
Implementation
static String? required(String? checkValue,
{String? nullErrorMessage, String? emptyErrorMessage}) {
return StringValidationFunctions.notNull(checkValue,
errorMessage: nullErrorMessage) ??
StringValidationFunctions.notEmpty(checkValue,
errorMessage: emptyErrorMessage);
}