getParentText method
Implementation
String getParentText(bool isStartArray) {
String result =
" ${isStartArray ? '[' : '{'}${data.isExpanded ? '' : "...${isStartArray ? ']' : '}'}"}";
if (data.childrenCount == 0 && data.isParent == true) {
if (isStartArray) {
result += ']';
} else {
result += '}';
}
}
return result;
}