wrapOffset method

SliverOffset wrapOffset(
  1. Offset offset,
  2. Size size
)

Wraps an Offset into a SliverOffset using the sliver constraints of this boxy.

If this boxy is not a RenderSliver, assume the axis is vertical.

Implementation

SliverOffset wrapOffset(Offset offset, Size size) {
  return SliverOffset(offset.dx, offset.dy, offset.dx, offset.dy);
}