lastDescendant function

Element lastDescendant(
  1. Element scope
)

Returns last descendant in the scope in dom order

Implementation

Element lastDescendant(Element scope) {
  Element current = scope;
  while (current.children.isNotEmpty) {
    current = _lastChild(current);
  }
  return current;
}