copyWith method
Implementation
CardProps copyWith({
Widget? child,
List<Widget>? children,
CardVariant? variant,
String? padding,
String? borderRadius,
String? backgroundColor,
bool? fillWidth,
void Function()? onTap,
}) {
return CardProps(
child: child ?? this.child,
children: children ?? this.children,
variant: variant ?? this.variant,
padding: padding ?? this.padding,
borderRadius: borderRadius ?? this.borderRadius,
backgroundColor: backgroundColor ?? this.backgroundColor,
fillWidth: fillWidth ?? this.fillWidth,
onTap: onTap ?? this.onTap,
);
}