PhysicalModel constructor
const
PhysicalModel({})
Creates a physical model with a rounded-rectangular clip.
The color
is required; physical things have a color.
The shape
, elevation
, color
, clipBehavior
, and shadowColor
must
not be null. Additionally, the elevation
must be non-negative.
Implementation
const PhysicalModel(
{super.key,
this.shape = BoxShape.rectangle,
this.clipBehavior = Clip.none,
this.borderRadius,
this.elevation = 0.0,
required this.color,
this.shadowColor = const Color(0xFF000000),
this.child})
: assert(elevation >= 0.0);