listNotEmpty static method

bool listNotEmpty(
  1. List? list
)

List不为空

Implementation

static bool listNotEmpty(List? list) {
  if (list == null) return false;
  if (list.length == 0) return false;
  return true;
}