isEmptyString function

bool isEmptyString(
  1. String str
)

Returns true if the string is null or 0-length.

Implementation

bool isEmptyString(String str) {
  return str == null || str.isEmpty;
}