hierarchy method

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

Converts layout's hierarchical structure to a debug String.

Implementation

String hierarchy(
    {bool indexInfo = false,
    bool levelInfo = false,
    bool hasParentInfo = false,
    bool nameInfo = false}) {
  String str = typeAcronym;
  if (indexInfo) {
    str += index.toString();
  }
  if (levelInfo) {
    str += level.toString();
  }
  if (hasParentInfo) {
    if (_parent == null) {
      str += 'F';
    } else {
      str += 'T';
    }
  }
  return str;
}