isEmpty static method

bool isEmpty(
  1. String? str
)

Implementation

static bool isEmpty(String? str) {
  if (str == null) {
    return true;
  }
  if (str.isEmpty) {
    return true;
  }
  return false;
}