hasMaxLengthIfNotNullOrEmpty method
Implementation
ContractValidations hasMaxLengthIfNotNullOrEmpty(
String text, int max, String property, String message) {
if (text.isNotEmpty && text.length > max)
addNotifications(
ValidationNotification(property: property, message: message));
return this;
}