getBoundingClientRect method
Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.
Other resources
- Element.getBoundingClientRect from MDN.
- The getBoundingClientRect() method from W3C.
Implementation
Rectangle getBoundingClientRect() => Rectangle(0, 0, 0, 0);