topRight method Null safety

Offset topRight(
  1. Offset origin
)

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

See also Rect.topRight.

Implementation

Offset topRight(Offset origin) => Offset(origin.dx + width, origin.dy);