rectify method

double rectify(
  1. RenderSliver obj
)

Rectify the value according to the current growthDirection of sliver.

If the growthDirection is GrowthDirection.forward, the value is returned directly, otherwise the opposite value is returned.

Implementation

double rectify(
  RenderSliver obj,
) {
  return obj.isForwardGrowthDirection ? this : -this;
}