Checks whether the given list is not empty.
list
print(isNonEmpty([1, 2, 3])); // true print(isNonEmpty([])); // false
bool isNonEmpty<T>(List<T> list) => list.isNotEmpty;