copyWith method
Card
copyWith({
- Key? key,
- Color? color,
- Color? shadowColor,
- double? elevation,
- ShapeBorder? shape,
- bool? borderOnForeground,
- EdgeInsetsGeometry? margin,
- Clip? clipBehavior,
- Widget? child,
- 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,
);
}