copyWith method

Card copyWith({
  1. Key? key,
  2. Color? color,
  3. Color? shadowColor,
  4. double? elevation,
  5. ShapeBorder? shape,
  6. bool? borderOnForeground,
  7. EdgeInsetsGeometry? margin,
  8. Clip? clipBehavior,
  9. Widget? child,
  10. bool? semanticContainer,
})

Implementation

Card copyWith({
  Key? key,
  Color? color,
  Color? shadowColor,
  double? elevation,
  ShapeBorder? shape,
  bool? borderOnForeground,
  EdgeInsetsGeometry? margin,
  Clip? clipBehavior,
  Widget? child,
  bool? semanticContainer,
}) {
  return Card(
    key: key ?? this.key,
    color: color ?? this.color,
    shadowColor: shadowColor ?? this.shadowColor,
    elevation: elevation ?? this.elevation,
    shape: shape ?? this.shape,
    borderOnForeground: borderOnForeground ?? this.borderOnForeground,
    margin: margin ?? this.margin,
    clipBehavior: clipBehavior ?? this.clipBehavior,
    child: child ?? this.child,
    semanticContainer: semanticContainer ?? this.semanticContainer,
  );
}