fromNull method

List<T> fromNull()

Implementation

List<T> fromNull() {
  List<T> vals = [];
  this.forEach((e) {
    if (e != null) {
      vals.add(e);
    }
  });
  return vals;
}