CardTheme constructor Null safety
- {Clip? clipBehavior,
- Color? color,
- Color? shadowColor,
- Color? surfaceTintColor,
- double? elevation,
- EdgeInsetsGeometry? margin,
- 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);