判断List是否为空
static bool listEmpty(List? list) { if (list == null) return true; if (list.length == 0) return true; return false; }