Element parent
) Provides the offset of this element's borderEdge relative to the
specified parent
.
This is the Dart equivalent of jQuery's
position method. Unlike jQuery's
position, however, parent
can be any parent element of this
,
rather than only this
's immediate offsetParent. If the specified
element is not an offset parent or transitive offset parent to this
element, an ArgumentError is thrown.
Source
/**
* Provides the offset of this element's [borderEdge] relative to the
* specified [parent].
*
* This is the Dart equivalent of jQuery's
* [position](http://api.jquery.com/position/) method. Unlike jQuery's
* position, however, [parent] can be any parent element of `this`,
* rather than only `this`'s immediate [offsetParent]. If the specified
* element is _not_ an offset parent or transitive offset parent to this
* element, an [ArgumentError] is thrown.
*/
@Experimental()
Point offsetTo(Element parent) {
return Element._offsetToHelper(this, parent);
}