CardModifier constructor

const CardModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. Color? color,
  5. Color? shadowColor,
  6. Color? surfaceTintColor,
  7. double? elevation,
  8. ShapeBorder? shape,
  9. bool borderOnForeground = true,
  10. EdgeInsetsGeometry? margin,
  11. Clip? clipBehavior,
  12. bool semanticContainer = true,
})

Creates a Material Design card.

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

Implementation

const CardModifier({
  super.key,
  super.modifierKey,
  super.child,
  this.color,
  this.shadowColor,
  this.surfaceTintColor,
  this.elevation,
  this.shape,
  this.borderOnForeground = true,
  this.margin,
  this.clipBehavior,
  this.semanticContainer = true,
});