isEmpty static method

bool isEmpty(
  1. String? string
)

检查字符串是否空

Implementation

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