offsetTo method
- Elementparent
Provides the offset of this element'sborderEdge relative to thespecifiedparent.
This is the Dart equivalent of jQuery'sposition method. Unlike jQuery'sposition, however,parent can be any parent element ofthis,rather than onlythis's immediateoffsetParent. If the specifiedelement isnot an offset parent or transitive offset parent to thiselement, anArgumentError is thrown.
Implementation
Point offsetTo(Element parent) { return Element._offsetToHelper(this, parent);}