levelOfNode method

int levelOfNode(
  1. dynamic item
)

The level of the specified item

Implementation

int levelOfNode(dynamic item) {
  var controller = _rootController!.controllerOfItem(item);
  return controller!.level;
}