withChildObstructionExtent method

SliverGeometry withChildObstructionExtent(
  1. ChildObstructionExtent? value
)

Sets the extent from the edges in which this sliver obstructs its child.

See childObstructionExtent.

Implementation

SliverGeometry withChildObstructionExtent(
  ChildObstructionExtent? value,
) {
  return _SliverGeometryWithChildObstructionExtent(
    scrollExtent: scrollExtent,
    paintExtent: paintExtent,
    paintOrigin: paintOrigin,
    layoutExtent: layoutExtent,
    maxPaintExtent: maxPaintExtent,
    maxScrollObstructionExtent: maxScrollObstructionExtent,
    crossAxisExtent: crossAxisExtent,
    hitTestExtent: hitTestExtent,
    visible: visible,
    hasVisualOverflow: hasVisualOverflow,
    cacheExtent: cacheExtent,
    scrollOffsetCorrection: scrollOffsetCorrection,
    childObstructionExtent: value,
  );
}