depth property
int
get
depth
Implementation
int get depth {
if (children.isEmpty) {
return 1;
}
return children
.map((e) => e.depth)
.reduce((value, element) => value + element);
}