isDocumentRootBox property
bool
get
isDocumentRootBox
Whether current box is the root of the document which corresponds to HTML element in dom tree.
Implementation
bool get isDocumentRootBox {
// Get the outer box of overflow scroll box
return renderStyle.target is HTMLElement || renderStyle.target is RouterLinkElement;
}