SliverContainer constructor

SliverContainer({
  1. Key? key,
  2. required Widget? sliver,
  3. Widget? foreground,
  4. Widget? background,
  5. double bufferExtent = 0.0,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. CustomClipper<Path>? clipper,
  9. Clip clipBehavior = Clip.antiAlias,
  10. bool clipSliverOnly = false,
  11. BorderRadiusGeometry? borderRadius,
})

Constructs a SliverContainer with the specified arguments.

Implementation

SliverContainer({
  super.key,
  required this.sliver,
  this.foreground,
  this.background,
  this.bufferExtent = 0.0,
  this.padding,
  this.margin,
  CustomClipper<Path>? clipper,
  this.clipBehavior = Clip.antiAlias,
  this.clipSliverOnly = false,
  BorderRadiusGeometry? borderRadius,
})  : assert(clipper == null || borderRadius == null,
          'clipper cannot be used with borderRadius'),
      clipper = borderRadius != null
          ? ShapeBorderClipper(
              shape: RoundedRectangleBorder(borderRadius: borderRadius))
          : clipper;