merge method
Creates a copy of this SheetStyle but with the given fields replaced with the new values.
Implementation
SheetStyle merge(SheetStyle? other) {
// if null return current object
if (other == null) return this;
return copyWith(
variant: other.variant,
severity: other.severity,
width: other.width,
height: other.height,
margin: other.margin,
padding: other.padding,
alignment: other.alignment,
clipBehavior: other.clipBehavior,
overlayDisabled: other.overlayDisabled,
overlayColor: other.overlayColor,
shadowColor: other.shadowColor,
surfaceTint: other.surfaceTint,
elevation: other.elevation,
foregroundStyle: other.foregroundStyle,
foregroundColor: other.foregroundColor,
foregroundOpacity: other.foregroundOpacity,
foregroundAlpha: other.foregroundAlpha,
foregroundSpacing: other.foregroundSpacing,
foregroundLoosen: other.foregroundLoosen,
foregroundExpanded: other.foregroundExpanded,
foregroundAlign: other.foregroundAlign,
foregroundJustify: other.foregroundJustify,
backgroundColor: other.backgroundColor,
backgroundOpacity: other.backgroundOpacity,
backgroundAlpha: other.backgroundAlpha,
borderColor: other.borderColor,
borderOpacity: other.borderOpacity,
borderAlpha: other.borderAlpha,
borderWidth: other.borderWidth,
borderRadius: other.borderRadius,
borderStyle: other.borderStyle,
shape: other.shape,
iconColor: other.iconColor,
iconOpacity: other.iconOpacity,
iconSize: other.iconSize,
);
}