wrapSize method

SliverSize wrapSize(
  1. Size size
)

Wraps a Size into a SliverSize using the sliver constraints of this boxy.

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

Implementation

SliverSize wrapSize(Size size) {
  return SliverSize(size.width, size.height, Axis.vertical);
}