isStringEmpty function
Checks whether the given string is empty
Implementation
IValidator isStringEmpty({String? message}) {
return stringLength([isLte(0)]) >
Expectation(
message: message ?? 'String to be empty',
code: ExpectationCodes.valueLengthOutOfRange,
data: {'expected': 0},
);
}