getChildCount function
Implementation
String getChildCount(ChildType type) {
switch (type) {
case ChildType.none:
return '0';
case ChildType.child:
return '1';
case ChildType.requiredChild:
return '1';
case ChildType.children:
return '-1';
}
}