centerLeft method

Offset centerLeft (Offset origin)

The offset to the center of the left 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 centerLeft(Offset origin) => new Offset(origin.dx, origin.dy + height / 2.0);