isEmptyList static method

bool isEmptyList(
  1. Iterable? list
)

Returns true if the list is null or 0-length. 判断集合是否为空

Implementation

static bool isEmptyList(Iterable? list) {
  return list == null || list.isEmpty;
}