fieldsWithTypeAndAnnotations method
Map<String, TypeInfo>
fieldsWithTypeAndAnnotations(
- bool typeFilter(
- String fieldName,
- TypeInfo fieldType,
- List<
EntityAnnotation> ? fieldAnnotations
- O? o
Implementation
Map<String, TypeInfo> fieldsWithTypeAndAnnotations(
bool Function(
String fieldName,
TypeInfo fieldType,
List<EntityAnnotation>? fieldAnnotations,
)
typeFilter, [
O? o,
]) {
final fieldsAnnotations = fieldsEntityAnnotations();
return Map.unmodifiable(
fieldsTypes(o).entries
.where((e) => typeFilter(e.key, e.value, fieldsAnnotations[e.key]))
.toMapFromEntries(),
);
}