empty method

AbstractRuleBuilder empty({
  1. String? message,
})

Checks if the object a string and is empty

Implementation

AbstractRuleBuilder empty({String? message}) {
  return must((dynamic dyn) => dyn is String && dyn.isEmpty, message ?? "String must be empty", code: "notEmpty");
}