getFieldsGroupByPrefix<K, V> method
Map<K, V?>
getFieldsGroupByPrefix<
K, V>( - String groupPrefix, {
- Map<String, String?>? fields,
- String keyDelimiter = '_',
- String keyPart(
- String key
)?,
- K keyAs(
- String key
)?,
- V? valueAs(
- String key
)?,
- bool filter(
- K key,
- V? value
)?,
})
Implementation
Map<K, V?> getFieldsGroupByPrefix<K, V>(
String groupPrefix, {
Map<String, String?>? fields,
String keyDelimiter = '_',
String Function(String key)? keyPart,
K Function(String key)? keyAs,
V? Function(String key)? valueAs,
bool Function(K key, V? value)? filter,
}) {
var entries = getFieldsGroupEntriesByPrefix<K, V>(groupPrefix,
fields: fields,
keyDelimiter: keyDelimiter,
keyPart: keyPart,
keyAs: keyAs,
valueAs: valueAs,
filter: filter);
var map = Map.fromEntries(entries);
return map;
}