maxZ method

int maxZ()

Returns the maximum z-order in this subtree.

Implementation

int maxZ() {
  var maxZ = z;
  for (final child in _layers) {
    maxZ = math.max(maxZ, child.maxZ());
  }
  return maxZ;
}