listNoEmpty static method

bool listNoEmpty(
  1. List? list
)

判断 List 不为空(修复了原来的逻辑错误)

Implementation

static bool listNoEmpty(List? list) {
  if (list == null) return false;
  return list.isNotEmpty;
}