RenderPhysicalModel constructor
Creates a rounded-rectangular clip.
The color
is required.
The shape
, elevation
, color
, and shadowColor
must not be null.
Implementation
RenderPhysicalModel({
RenderBox child,
BoxShape shape = BoxShape.rectangle,
Clip clipBehavior = Clip.none,
BorderRadius borderRadius,
double elevation = 0.0,
@required Color color,
Color shadowColor = const Color(0xFF000000),
}) : assert(shape != null),
assert(clipBehavior != null),
assert(elevation != null),
assert(color != null),
assert(shadowColor != null),
_shape = shape,
_borderRadius = borderRadius,
super(
clipBehavior: clipBehavior,
child: child,
elevation: elevation,
color: color,
shadowColor: shadowColor
);