RenderSliverContainer constructor
RenderSliverContainer({
- RenderBox? foreground,
- RenderSliver? sliver,
- RenderBox? background,
- double bufferExtent = 0.0,
- Clip clipBehavior = Clip.antiAlias,
- CustomClipper<
Path> ? clipper, - 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!);
}