merge method
This style, with any unset field taken from other, field by field.
Implementation
ImageStyle merge(ImageStyle? other) {
if (other == null) {
return this;
}
return ImageStyle(
borderRadius: borderRadius ?? other.borderRadius,
padding: padding ?? other.padding,
fit: fit ?? other.fit,
maxWidth: maxWidth ?? other.maxWidth,
maxHeight: maxHeight ?? other.maxHeight,
);
}