copyWith method
ImageStyle
copyWith({
- Radius? borderRadius,
- EdgeInsetsGeometry? padding,
- BoxFit? fit,
- double? maxWidth,
- double? maxHeight,
A copy with the given fields replaced.
Implementation
ImageStyle copyWith({
Radius? borderRadius,
EdgeInsetsGeometry? padding,
BoxFit? fit,
double? maxWidth,
double? maxHeight,
}) {
return ImageStyle(
borderRadius: borderRadius ?? this.borderRadius,
padding: padding ?? this.padding,
fit: fit ?? this.fit,
maxWidth: maxWidth ?? this.maxWidth,
maxHeight: maxHeight ?? this.maxHeight,
);
}