copyWith method

FlintImage copyWith({
  1. String? src,
  2. String? alt,
  3. double? width,
  4. double? height,
  5. EdgeInsets? margin,
  6. EdgeInsets? padding,
  7. String? alignment,
  8. BoxBorder? border,
  9. BorderRadius? borderRadius,
  10. BoxShadow? shadow,
  11. ImageStyle? style,
  12. String? caption,
  13. bool? lazyLoading,
  14. String? linkUrl,
})

Creates a copy with updated properties

Implementation

FlintImage copyWith({
  String? src,
  String? alt,
  double? width,
  double? height,
  EdgeInsets? margin,
  EdgeInsets? padding,
  String? alignment,
  BoxBorder? border,
  BorderRadius? borderRadius,
  BoxShadow? shadow,
  ImageStyle? style,
  String? caption,
  bool? lazyLoading,
  String? linkUrl,
}) {
  return FlintImage(
    src: src ?? this.src,
    alt: alt ?? this.alt,
    width: width ?? this.width,
    height: height ?? this.height,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    alignment: alignment ?? this.alignment,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
    shadow: shadow ?? this.shadow,
    style: style ?? this.style,
    caption: caption ?? this.caption,
    lazyLoading: lazyLoading ?? this.lazyLoading,
    linkUrl: linkUrl ?? this.linkUrl,
  );
}