copyWith method

ImageContainerConfig copyWith({
  1. double? width,
  2. double? height,
  3. Color? backgroundColor,
  4. BorderRadius? borderRadius,
  5. Border? border,
  6. List<BoxShadow>? boxShadow,
  7. EdgeInsetsGeometry? padding,
  8. EdgeInsetsGeometry? margin,
  9. BoxFit? fit,
  10. Alignment? alignment,
  11. Clip? clipBehavior,
  12. 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,
  );
}