Card constructor

const Card({
  1. Key? key,
  2. Widget? child,
  3. List<Widget>? children,
  4. String? thumbHash,
  5. double thumbHashIntensityMultiplier = 1,
  6. EdgeInsetsGeometry? padding,
  7. bool? filled,
  8. Color? fillColor,
  9. BorderRadiusGeometry? borderRadius,
  10. Clip? clipBehavior,
  11. Color? borderColor,
  12. double? borderWidth,
  13. List<BoxShadow>? boxShadow,
  14. double? surfaceOpacity,
  15. double? surfaceBlur,
  16. Duration? duration,
  17. VoidCallback? onPressed,
  18. bool thumbHashUseShaders = true,
  19. bool dashedBorder = false,
  20. IconData? leadingIcon,
  21. Widget? leading,
  22. Widget? title,
  23. String? titleText,
  24. Widget? subtitle,
  25. String? subtitleText,
  26. Widget? content,
  27. Widget? trailing,
  28. AlignmentGeometry? leadingAlignment,
  29. AlignmentGeometry? trailingAlignment,
  30. AlignmentGeometry? titleAlignment,
  31. AlignmentGeometry? subtitleAlignment,
  32. AlignmentGeometry? contentAlignment,
  33. double? contentSpacing,
  34. double? titleSpacing,
  35. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  36. EdgeInsetsGeometry? basicPadding,
  37. bool? spanning,
})

Implementation

const Card({
  super.key,
  this.child,
  this.children,
  this.thumbHash,
  this.thumbHashIntensityMultiplier = 1,
  this.padding,
  this.filled,
  this.fillColor,
  this.borderRadius,
  this.clipBehavior,
  this.borderColor,
  this.borderWidth,
  this.boxShadow,
  this.surfaceOpacity,
  this.surfaceBlur,
  this.duration,
  this.onPressed,
  this.thumbHashUseShaders = true,
  this.dashedBorder = false,
  this.leadingIcon,
  this.leading,
  this.title,
  this.titleText,
  this.subtitle,
  this.subtitleText,
  this.content,
  this.trailing,
  this.leadingAlignment,
  this.trailingAlignment,
  this.titleAlignment,
  this.subtitleAlignment,
  this.contentAlignment,
  this.contentSpacing,
  this.titleSpacing,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.basicPadding,
  this.spanning,
});