CardProps constructor

const CardProps({
  1. Widget? child,
  2. List<Widget>? children,
  3. CardVariant variant = CardVariant.elevated,
  4. EdgeInsets? padding,
  5. BorderRadius? borderRadius,
  6. String? backgroundColor,
  7. bool fillWidth = false,
  8. void onTap()?,
  9. String? href,
  10. String? target,
  11. String? rel,
  12. String? classes,
  13. Map<String, String>? attributes,
  14. String? ariaLabel,
  15. ArcaneStyleData? styles,
  16. ArcaneDecoration? decoration,
})

Implementation

const CardProps({
  this.child,
  this.children,
  this.variant = CardVariant.elevated,
  this.padding,
  this.borderRadius,
  this.backgroundColor,
  this.fillWidth = false,
  this.onTap,
  this.href,
  this.target,
  this.rel,
  this.classes,
  this.attributes,
  this.ariaLabel,
  this.styles,
  this.decoration,
}) : assert(
       child != null || children != null,
       'Either child or children must be provided',
     ),
     assert(
       href == null || onTap == null,
       'CardProps href and onTap are mutually exclusive',
     );