RootDomRenderObject.between constructor
RootDomRenderObject.between(
- Node start,
- Node end
Implementation
factory RootDomRenderObject.between(web.Node start, web.Node end) {
final nodes = <web.Node>[];
web.Node? curr = start.nextSibling;
while (curr != null && curr != end) {
nodes.add(curr);
curr = curr.nextSibling;
}
return RootDomRenderObject(start.parentElement!, nodes);
}