projectDescription static method

String? projectDescription(
  1. String? value
)

Implementation

static String? projectDescription(String? value) {
  if (value != null) {
    if (value.isEmpty) {
      return 'Project description can\'t be empty';
    }
    if (value.length > projectDescriptionMaxLength) {
      return 'Project description must have maximum $projectDescriptionMaxLength characters';
    }
    return null;
  } else {
    return 'Value is null';
  }
}