MapExtensions<T> extension

on

Properties

calculateAvarage double

Available on Map, provided by the MapExtensions extension

Calculates and returns the average value based on the key-value pairs in the current Map.
no setter
getBoolList List<bool>

Available on Map, provided by the MapExtensions extension

Returns a new List
no setter
reversedKeys Map

Available on Map, provided by the MapExtensions extension

no setter
stringValuesOnly Map

Available on Map, provided by the MapExtensions extension

Returns a new map with string values only.
no setter
sumValues double

Available on Map, provided by the MapExtensions extension

Calculates and returns the sum of all values in the current Map.
no setter

Methods

convertAllValuesToString() Map<String, dynamic>

Available on Map, provided by the MapExtensions extension

Returns a new map with string values only.
countByField(String field) Map<String, int>

Available on Map, provided by the MapExtensions extension

filterBy(String field, String value) Map<String, dynamic>

Available on Map, provided by the MapExtensions extension

Filters the map of maps by a specific field value.
filterByKeys(List<String> keys) Map<String, Map>

Available on Map, provided by the MapExtensions extension

Filters the map by specified keys and returns a new map containing only the selected key-value pairs.
filterByValue(String field, String type) Map<String, Map>

Available on Map, provided by the MapExtensions extension

getByField<T>(String fieldName) List<T>

Available on Map, provided by the MapExtensions extension

Returns a new list of values from the specified fieldName in a map-like structure.
getOptionsAsList({required String byField}) Map<String, List<Map>>

Available on Map, provided by the MapExtensions extension

groupByChildField(String field) Map<String, Map<String, dynamic>>

Available on Map, provided by the MapExtensions extension

Groups a map of season colors by their respective months.
groupByField(String fieldName) Map<String, List<Map<String, dynamic>>>

Available on Map, provided by the MapExtensions extension

Groups the map's inner items based on a specified field.
mergeWith(Map<String, Map> other) Map<String, Map>

Available on Map, provided by the MapExtensions extension

Merges two maps of type Map<String, Map> into a new map, combining entries with matching keys.
randomEntryByField(String field) String

Available on Map, provided by the MapExtensions extension

Retrieves a random value from a random entry in the Map based on the specified field.
toBoolList({int trueAtIndex = 0}) List<bool>

Available on Map, provided by the MapExtensions extension

Converts the current List to a List