setMenuSurfaceAnchorElement method
Changes the element used as an anchor for menu-surface positioning logic. Should be used with conjunction with hoistMenuToBody().
Implementation
void setMenuSurfaceAnchorElement(Element root) =>
js.setMenuSurfaceAnchorElement(root);