beforePadding property

double get beforePadding

The padding in the scroll direction on the side nearest the 0.0 scroll direction.

Only valid after layout has started, since before layout the render object doesn't know what direction it will be laid out in.

Implementation

double get beforePadding {
  assert(resolvedPadding != null);
  return switch (applyGrowthDirectionToAxisDirection(constraints.axisDirection, constraints.growthDirection)) {
    AxisDirection.up    => resolvedPadding!.bottom,
    AxisDirection.right => resolvedPadding!.left,
    AxisDirection.down  => resolvedPadding!.top,
    AxisDirection.left  => resolvedPadding!.right,
  };
}