RenderPhysicalModel constructor

RenderPhysicalModel(
  1. {RenderBox? child,
  2. BoxShape shape = BoxShape.rectangle,
  3. Clip clipBehavior = Clip.none,
  4. BorderRadius? borderRadius,
  5. double elevation = 0.0,
  6. required Color color,
  7. Color shadowColor = const Color(0xFF000000)}
)

Creates a rounded-rectangular clip.

The color is required.

The elevation parameter 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(elevation >= 0.0),
     _shape = shape,
     _borderRadius = borderRadius;