depthOf method

int? depthOf(
  1. String id
)

How deep id sits under the root, or null when nothing reaches it.

Implementation

int? depthOf(String id) => _depthOf(id, <String>{});