copyWith method
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,
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,
);
}