fromNull method

Map<K, V> fromNull()

Implementation

Map<K, V> fromNull() {
  Map<K, V> vals = {};
  forEach((key, value) {
    if (key != null && value != null) {
      vals[key] = value;
    }
  });
  return vals;
}