PhysicalShape constructor

const PhysicalShape({Key key, @required CustomClipper<Path> clipper, Clip clipBehavior: Clip.none, double elevation: 0.0, @required Color color, Color shadowColor: const Color(0xFF000000), Widget child })

Creates a physical model with an arbitrary shape clip.

The color is required; physical things have a color.

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

Implementation

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