Card constructor

const Card({Key key, Color color, double elevation, ShapeBorder shape, bool borderOnForeground: true, EdgeInsetsGeometry margin, Clip clipBehavior, Widget child, bool semanticContainer: true })

Creates a material design card.

The elevation must be null or non-negative. The borderOnForeground must not be null.

Implementation

const Card({
  Key key,
  this.color,
  this.elevation,
  this.shape,
  this.borderOnForeground = true,
  this.margin,
  this.clipBehavior,
  this.child,
  this.semanticContainer = true,
}) : assert(elevation == null || elevation >= 0.0),
     assert(borderOnForeground != null),
     super(key: key);