wrapSize method

  1. @override
SliverSize wrapSize(
  1. Size size
)
override

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

@override
SliverSize wrapSize(Size size) {
  return SliverSize(size.width, size.height, constraints.axis);
}