getFieldsGroupValuesByPrefix<V> method

List<V> getFieldsGroupValuesByPrefix<V>(
  1. String groupPrefix, {
  2. Map<String, String?>? fields,
  3. String keyDelimiter = '_',
  4. String keyPart(
    1. String key
    )?,
  5. V? valueAs(
    1. String key
    )?,
  6. bool filter(
    1. Object key,
    2. V? value
    )?,
})

Implementation

List<V> getFieldsGroupValuesByPrefix<V>(
  String groupPrefix, {
  Map<String, String?>? fields,
  String keyDelimiter = '_',
  String Function(String key)? keyPart,
  V? Function(String key)? valueAs,
  bool Function(Object key, V? value)? filter,
}) => getFieldsGroupEntriesByPrefix(
  groupPrefix,
  fields: fields,
  keyDelimiter: keyDelimiter,
  keyPart: keyPart,
  valueAs: valueAs,
  filter: filter,
).map((e) => e.value).whereType<V>().toList();