validateBizName static method

String? validateBizName(
  1. String? value
)

Validator for the form fields which ask about business name

Implementation

static String? validateBizName(String? value) {
  if (value == null) {
    return 'Value cannot be empty';
  }

  if (value.length < 5) {
    return 'Value must be at least 5 characters';
  }

  return null;
}