isEmpty method

bool isEmpty(
  1. String? text
)

判断文本内容是否为空

Implementation

bool isEmpty(String? text) {
  return text == null || text.isEmpty;
}