required static method

String? required(
  1. String? checkValue, {
  2. String? nullErrorMessage,
  3. String? emptyErrorMessage,
})

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);
}