copyWith method
ImageContainerConfig
copyWith({
- double? width,
- double? height,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- Border? border,
- List<
BoxShadow> ? boxShadow, - EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BoxFit? fit,
- Alignment? alignment,
- Clip? clipBehavior,
- bool? isCircle,
Implementation
ImageContainerConfig copyWith({
double? width,
double? height,
Color? backgroundColor,
BorderRadius? borderRadius,
Border? border,
List<BoxShadow>? boxShadow,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
BoxFit? fit,
Alignment? alignment,
Clip? clipBehavior,
bool? isCircle,
}) {
return ImageContainerConfig(
width: width ?? this.width,
height: height ?? this.height,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderRadius: borderRadius ?? this.borderRadius,
border: border ?? this.border,
boxShadow: boxShadow ?? this.boxShadow,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
fit: fit ?? this.fit,
alignment: alignment ?? this.alignment,
clipBehavior: clipBehavior ?? this.clipBehavior,
isCircle: isCircle ?? this.isCircle,
);
}