CardTheme constructor

const CardTheme(
  1. {Clip? clipBehavior,
  2. Color? color,
  3. Color? shadowColor,
  4. Color? surfaceTintColor,
  5. double? elevation,
  6. EdgeInsetsGeometry? margin,
  7. ShapeBorder? shape}
)

Creates a theme that can be used for ThemeData.cardTheme.

The elevation must be null or non-negative.

Implementation

const CardTheme({
  this.clipBehavior,
  this.color,
  this.shadowColor,
  this.surfaceTintColor,
  this.elevation,
  this.margin,
  this.shape,
}) : assert(elevation == null || elevation >= 0.0);