copyWith method

CardProps copyWith({
  1. Widget? child,
  2. List<Widget>? children,
  3. CardVariant? variant,
  4. String? padding,
  5. String? borderRadius,
  6. String? backgroundColor,
  7. bool? fillWidth,
  8. void onTap()?,
})

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,
  );
}