setTop method

Rect setTop(
  1. double top
)

Sets the top edge of the rectangle to the given position. May change the height, but will never change the bottom edge of the rectangle.

Implementation

Rect setTop(double top) {
  return Rect.fromLTRB(left, top, right, bottom);
}