Rect rectFromPoints(Offset leftTop, Offset rightBottom) { return Rect.fromLTRB(leftTop.dx, leftTop.dy, rightBottom.dx, rightBottom.dy); }