RenderPhysicalShape constructor Null safety
Creates an arbitrary shape clip.
The color
and clipper
parameters are required.
The clipper
, elevation
, color
and shadowColor
must not be null.
Additionally, the elevation
must be non-negative.
Implementation
RenderPhysicalShape({
super.child,
required CustomClipper<Path> super.clipper,
super.clipBehavior,
super.elevation = 0.0,
required super.color,
super.shadowColor = const Color(0xFF000000),
}) : assert(clipper != null),
assert(elevation != null && elevation >= 0.0),
assert(color != null),
assert(shadowColor != null);