getChildProperty<TFormElement> method
Property<TFormElement>
getChildProperty<TFormElement>({
- required String propertyName,
- required ElementParserFunction parser,
- required FormElement parent,
- required TFormElement defaultValue(),
- bool isContentProperty = false,
- bool isImmutable = true,
override
Implementation
@override
Property<TFormElement> getChildProperty<TFormElement>({
required String propertyName,
required ElementParserFunction parser,
required FormElement parent,
required TFormElement Function() defaultValue,
bool isContentProperty = false,
bool isImmutable = true,
}) {
var childElement = element[propertyName] as Map<String, dynamic>?;
if (childElement != null) {
return createProperty<TFormElement>(
parser(JsonParserNode(childElement), parent) as TFormElement,
isImmutable);
}
return createProperty<TFormElement>(defaultValue(), isImmutable);
}