mergeNonNull method

void mergeNonNull(
  1. Map<K, V>? other
)

将后一个 Map 的内容合并到前一个 Map 中, 同时过滤掉 null

Implementation

void mergeNonNull(Map<K, V>? other) {
  merge(
    other
      ?..removeWhere(
        (key, value) => value == null,
      ),
  );
}