merge method
Implementation
Style merge(Style? style) {
if (style == null) {
return this;
} else {
return copyWith(
alignment: style.alignment,
width: style.width,
height: style.height,
margin: style.margin,
padding: style.padding,
visible: style.visible,
opacity: style.opacity,
foregroundDecoration: style.foregroundDecoration,
backgroundDecoration: style.backgroundDecoration,
shadows: style.shadows,
insetShadows: style.insetShadows,
shapeBorder: style.shapeBorder,
transform: style.transform,
transformAlignment: style.transformAlignment,
childAlignment: style.childAlignment,
textStyle: style.textStyle,
textAlign: style.textAlign,
shaderGradient: style.shaderGradient,
imageFilter: style.imageFilter,
backdropFilter: style.backdropFilter,
mouseCursor: style.mouseCursor,
);
}
}