Card constructor

const Card({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onPressed,
  4. EdgeInsetsGeometry? padding,
  5. bool filled = false,
  6. Color? fillColor,
  7. double? borderRadius,
  8. Clip clipBehavior = Clip.none,
  9. Color? borderColor,
  10. double? borderWidth,
  11. List<BoxShadow>? boxShadow,
  12. double? surfaceOpacity,
  13. double? surfaceBlur,
})

Implementation

const Card({
  super.key,
  required this.child,
  this.onPressed,
  this.padding,
  this.filled = false,
  this.fillColor,
  this.borderRadius,
  this.clipBehavior = Clip.none,
  this.borderColor,
  this.borderWidth,
  this.boxShadow,
  this.surfaceOpacity,
  this.surfaceBlur,
});