centerRight method Null safety

Offset centerRight(
  1. 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) => Offset(origin.dx + width, origin.dy + height / 2.0);