Card.elevated constructor
const
Card.elevated({
- Widget? child,
- List<
Widget> ? children, - EdgeInsets? padding,
- BorderRadius? borderRadius,
- void onTap()?,
- String? href,
- String? target,
- String? rel,
- String? classes,
- Map<
String, String> ? attributes, - String? ariaLabel,
- String? backgroundColor,
- bool fillWidth = false,
- ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
- 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',
);