listNoEmpty static method

bool listNoEmpty(
  1. List? list
)

判断List是否为空

Implementation

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

  if (list.length == 0) return false;

  return true;
}