measure method
Returns a dimension client rectangle for element
.
If offset
is true, returns the offset positions from the parent instead
of absolute.
Throws StateError if element
is not within the live DOM.
Implementation
@override
Future<Rectangle> measure(ElementRef elementRef, {bool offset = false}) {
return _domRuler.measure(elementRef.nativeElement, offset: offset);
}