RootDomRenderObject.between constructor

RootDomRenderObject.between(
  1. Node start,
  2. 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);
}