level property

int get level

NodeController's level

Implementation

int get level {
  if (treeNode.item == null) {
    return -1;
  }
  if (_level == min) {
    _level = parent!.level + 1;
  }
  return _level;
}