validateIsNotEmpty static method
Validates if the value is not empty using RequiredRule.
Returns true
if value is not empty, otherwise false
.
Example:
IstValidator.validateIsNotEmpty("hello"); // true
IstValidator.validateIsNotEmpty(""); // false
Implementation
static bool validateIsNotEmpty(String value) {
return RequiredRule().validate(value) == null;
}