isEmptyList function

bool isEmptyList(
  1. List list
)

Returns true if the list is null or 0-length.

Implementation

bool isEmptyList(List list) {
  return list == null || list.isEmpty;
}