RenderPhysicalModel constructor Null safety
Creates a rounded-rectangular clip.
The color
is required.
The shape
, elevation
, color
, clipBehavior
, and shadowColor
arguments must not be null. Additionally, the elevation
must be
non-negative.
Implementation
RenderPhysicalModel({
super.child,
BoxShape shape = BoxShape.rectangle,
super.clipBehavior,
BorderRadius? borderRadius,
super.elevation = 0.0,
required super.color,
super.shadowColor = const Color(0xFF000000),
}) : assert(shape != null),
assert(clipBehavior != null),
assert(elevation != null && elevation >= 0.0),
assert(color != null),
assert(shadowColor != null),
_shape = shape,
_borderRadius = borderRadius;