hierarchy method

  1. @override
String hierarchy({
  1. bool indexInfo = false,
  2. bool levelInfo = false,
  3. bool hasParentInfo = false,
  4. bool nameInfo = false,
})
override

Converts layout's hierarchical structure to a debug String.

Implementation

@override
String hierarchy(
    {bool indexInfo = false,
    bool levelInfo = false,
    bool hasParentInfo = false,
    bool nameInfo = false}) {
  String str = super.hierarchy(
          indexInfo: indexInfo,
          levelInfo: levelInfo,
          hasParentInfo: hasParentInfo) +
      '(';
  for (int i = 0; i < _children.length; i++) {
    if (i > 0) {
      str += ',';
    }
    str += _children[i].hierarchy(
        levelInfo: levelInfo,
        hasParentInfo: hasParentInfo,
        indexInfo: indexInfo,
        nameInfo: nameInfo);
  }
  str += ')';
  return str;
}