validateStringField static method

String? validateStringField(
  1. String? value,
  2. String fieldName
)

Implementation

static String? validateStringField(String? value, String fieldName) {
  if (value == null || value.isEmpty || value.length < 1) {
    return makeValidateFieldMessage(fieldName);
  }

  return null;
}