setTopLeft method
Set the top-left corner of the rectangle to the given position. May change the size, but will never change the bottom-right corner of the rectangle.
Implementation
Rect setTopLeft(Offset topLeft) {
return Rect.fromLTRB(
topLeft.dx,
topLeft.dy,
right,
bottom,
);
}