RenderSliverContainer constructor

RenderSliverContainer({
  1. RenderBox? foreground,
  2. RenderSliver? sliver,
  3. RenderBox? background,
  4. double bufferExtent = 0.0,
  5. Clip clipBehavior = Clip.antiAlias,
  6. CustomClipper<Path>? clipper,
  7. bool clipSliverOnly = false,
})

Constructs a RenderSliverContainer with the specified arguments.

Implementation

RenderSliverContainer({
  this.foreground,
  this.sliver,
  this.background,
  double bufferExtent = 0.0,
  Clip clipBehavior = Clip.antiAlias,
  CustomClipper<Path>? clipper,
  bool clipSliverOnly = false,
}) :
  _clipBehavior = clipBehavior,
  _clipper = clipper,
  _bufferExtent = bufferExtent,
  _clipSliverOnly = clipSliverOnly {
  if (foreground != null) adoptChild(foreground!);
  if (sliver != null) adoptChild(sliver!);
  if (background != null) adoptChild(background!);
}