Card.elevated constructor

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

Implementation

const Card.elevated({
  Widget? child,
  List<Widget>? children,
  this.padding,
  this.borderRadius,
  void Function()? onTap,
  this.href,
  this.target,
  this.rel,
  this.classes,
  this.attributes,
  this.ariaLabel,
  this.backgroundColor,
  this.fillWidth = false,
  this.styles,
  this.decoration,
  super.key,
}) : _child = child,
     _children = children,
     _onTap = onTap,
     variant = CardVariant.elevated,
     assert(
       child != null || children != null,
       'Either child or children must be provided',
     ),
     assert(
       href == null || onTap == null,
       'Card href and onTap are mutually exclusive',
     );