getParentText method

String getParentText(
  1. bool isStartArray
)

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;
}