isEmpty static method

bool isEmpty(
  1. String text
)

判断文本内容是否为空

Implementation

static bool isEmpty(String text) => text == null || text.isEmpty;