isSubmap method
Test whether or not the given map
contains all of the keys and values contained in this Map.
Implementation
bool Function(Map<K, V>) Function(Eq<V>) isSubmap(Eq<K> eqK) =>
(Eq<V> eqV) => (Map<K, V> map) => foldLeftWithKey<bool>(Order.allEqual())(
true,
(b, k, v) =>
b &&
map.entries.any(
(e) => eqK.eqv(e.key, k) && eqV.eqv(e.value, v),
),
);