projectDescription static method
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';
}
}