SliverContainer constructor
SliverContainer({
- Key? key,
- required Widget? sliver,
- Widget? foreground,
- Widget? background,
- double bufferExtent = 0.0,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- CustomClipper<
Path> ? clipper, - Clip clipBehavior = Clip.antiAlias,
- bool clipSliverOnly = false,
- BorderRadiusGeometry? borderRadius,
Constructs a SliverContainer with the specified arguments.
Implementation
SliverContainer({
Key? 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,
super(key: key);