isEmpty static method

bool isEmpty(
  1. String? string
)

检查字符串是否空

Implementation

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