setRight method

Rect setRight(
  1. double right
)

Sets the right edge of the rectangle to the given x coordinate. May change the width, but will never change the left edge of the rectangle.

Implementation

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