MapExt<K, V> extension
Extension methods for generic maps.
- on
-
- Map<
K, V>
- Map<
Methods
-
getRandomListExcept(
{required int count, required List< K> ? ignoreList}) → List<MapEntry< ?K, V> > -
Available on Map<
Returns up toK, V> , provided by the MapExt extensioncountrandom entries from this map, excluding any keys present inignoreList. -
nullIfEmpty(
) → Map< K, V> ? -
Available on Map<
Returns this map, orK, V> , provided by the MapExt extensionnullif it is empty.