centerRight method

Offset centerRight (Offset origin)

The offset to the center of the right edge of the rectangle described by the given offset (which is interpreted as the top-left corner) and this size.

See also Rect.centerLeft.

Implementation

Offset centerRight(Offset origin) => new Offset(origin.dx + width, origin.dy + height / 2.0);