acceptProperties method
List<HandledPaths>
acceptProperties(
- JsonPath? basePath,
- IMSchemaDefinition definition,
- Map<
JsonPath, IMSchemaProperty> available
override
Examines a form, and returns a list of properties that this handler is capable of dealing with, grouped together in HandledPaths. Each of these field clusters will be passed back to the handler during rendering
Implementation
@override
List<HandledPaths> acceptProperties(
JsonPath? basePath,
IMSchemaDefinition definition,
Map<JsonPath, IMSchemaProperty> available,
) =>
[
...available.values
.where(
(final p) => p is IEmbeddedProperty && p.embedRef == embedRef)
.map((p) {
return HandledPaths.ofProperty(p, basePath!, this);
}),
];