copyWith method

CardStyle copyWith({
  1. double? elevation,
  2. double? radius,
  3. double? margin,
  4. String? clipType,
})

Implementation

CardStyle copyWith({
  double? elevation,
  double? radius,
  double? margin,
  String? clipType,
}) {
  return CardStyle(
    elevation: elevation ?? this.elevation,
    radius: radius ?? this.radius,
    margin: margin ?? this.margin,
    clipType: clipType ?? this.clipType,
  );
}