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 StraingValidationFunctions.notNull(checkValue,
errorMessage: nullErrorMessage) ??
StraingValidationFunctions.notEmpty(checkValue,
errorMessage: emptyErrorMessage);
}