filterWithKeyAndIndex method
Implementation
Map<K, V> filterWithKeyAndIndex(
bool Function(K key, V value, int index) test,
) =>
{
for (var (index, MapEntry(:key, :value)) in entries.indexed)
if (test(key, value, index)) key: value
};