NotchedCard.filled constructor

const NotchedCard.filled({
  1. Key? key,
  2. required GlobalKey<State<StatefulWidget>> guestKey,
  3. double notchMargin = 2,
  4. NotchedShape? shapeNotch,
  5. Color? color,
  6. Color? shadowColor,
  7. Color? surfaceTintColor,
  8. double? elevation,
  9. ShapeBorder? shape,
  10. bool borderOnForeground = true,
  11. EdgeInsetsGeometry? margin,
  12. Clip? clipBehavior,
  13. Widget? child,
  14. bool semanticContainer = true,
})

Create a filled variant of Card.

Filled cards provide subtle separation from the background. This has less emphasis than elevated(default) or outlined cards.

Implementation

const NotchedCard.filled({
  super.key,
  required this.guestKey,
  this.notchMargin = 2,
  this.shapeNotch,
  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.filled;