whereNotNull static method

List whereNotNull(
  1. List list,
  2. String key
)

returns items from the collection where the given key is not null

Example:

whereNotNull(list, "key")

Implementation

static List<dynamic> whereNotNull(List<dynamic> list, String key) {
  list.removeWhere((dynamic map) => FxMap.contains(map, key, null));
  return list;
}