getChildrenProperty<TFormElement> method
Property<List<TFormElement> >
getChildrenProperty<TFormElement>({
- FormElement? parent,
- required String childrenPropertyName,
- required ElementParserFunction parser,
- bool isContentProperty = false,
- bool isImmutable = true,
override
Implementation
@override
Property<List<TFormElement>> getChildrenProperty<TFormElement>(
{FormElement? parent,
required String childrenPropertyName,
required ElementParserFunction parser,
bool isContentProperty = false,
bool isImmutable = true}) {
var childrenList = element[childrenPropertyName] as List?;
var children = childrenList == null
? <TFormElement>[]
: childrenList
.map((c) => parser(JsonParserNode(c), parent))
.cast<TFormElement>()
.toList();
var childrenProperty = createProperty(children, isImmutable);
return childrenProperty;
}