afterPadding property

double afterPadding

The padding in the scroll direction on the side furthest from the 0.0 scroll offset.

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 afterPadding {
  assert(resolvedPadding != null);
  return switch (applyGrowthDirectionToAxisDirection(constraints.axisDirection, constraints.growthDirection)) {
    AxisDirection.up    => resolvedPadding!.top,
    AxisDirection.right => resolvedPadding!.right,
    AxisDirection.down  => resolvedPadding!.bottom,
    AxisDirection.left  => resolvedPadding!.left,
  };
}