filterNot method Null safety

KtMap<K, V> filterNot(
  1. bool predicate(
    1. KtMapEntry<K, V> entry

Returns a new map containing all key-value pairs not matching the given predicate.

The returned map preserves the entry iteration order of the original map.


KtMap<K, V> filterNot(bool Function(KtMapEntry<K, V> entry) predicate) {
  final filtered = filterNotTo(linkedMapFrom<K, V>(), predicate);
  // TODO ping dort-lang/sdk team to check type bug
  return filtered;