PhysicalModel constructor

const PhysicalModel({Key key, BoxShape shape: BoxShape.rectangle, Clip clipBehavior: Clip.none, BorderRadius borderRadius, double elevation: 0.0, @required Color color, Color shadowColor: const Color(0xFF000000), Widget child })

Creates a physical model with a rounded-rectangular clip.

The color is required; physical things have a color.

The shape, elevation, color, and shadowColor must not be null.

Implementation

const PhysicalModel({
  Key key,
  this.shape = BoxShape.rectangle,
  this.clipBehavior = Clip.none,
  this.borderRadius,
  this.elevation = 0.0,
  @required this.color,
  this.shadowColor = const Color(0xFF000000),
  Widget child,
}) : assert(shape != null),
     assert(elevation != null),
     assert(color != null),
     assert(shadowColor != null),
     super(key: key, child: child);