Card constructor
Creates an elevated variant of Card.
Elevated cards have a drop shadow, providing more separation from the background than filled cards, but less than outlined cards.
The elevation must be null or non-negative.
Implementation
const Card({
super.key,
this.color,
this.shadowColor,
this.surfaceTintColor,
this.elevation,
this.shape,
this.borderOnForeground = true,
this.margin,
this.clipBehavior,
this.child,
this.semanticContainer = true,
}) : assert(elevation == null || elevation >= 0.0),
_variant = _CardVariant.elevated;