topRight method
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) => new Offset(origin.dx + width, origin.dy);