I need the x, y coordinates of my document element in dart. I tried .clientTop and .clientLeft without success. window.screenLeft and screenTop is also important, if the window, is not maximized and is somewhere on the screen.

I need the x, y coordinates of my document element in dart. I tried .clientTop and .clientLeft without success. window.screenLeft and screenTop is also important, if the window, is not maximized and is somewhere on the screen.

This is as close as I can get for the height:
num offHeight = window.screenTop + window.outerHeight - window.innerHeight;