Draws a line to the top-left corner of rect.
rect
void lineToRect(Rect rect) => lineTo(rect.left, rect.top);