fieldsWithType method

Map<String, TypeInfo> fieldsWithType(
  1. bool typeFilter(
    1. String fieldName,
    2. TypeInfo fieldType
    ), [
  2. O? o
])

Implementation

Map<String, TypeInfo> fieldsWithType(
    bool Function(String fieldName, TypeInfo fieldType) typeFilter,
    [O? o]) {
  return Map<String, TypeInfo>.unmodifiable(
      Map<String, TypeInfo>.fromEntries(fieldsTypes(o).entries.where((e) {
    return typeFilter(e.key, e.value);
  })));
}