merge method
Implementation
Style merge(Style other) {
return copyWith(
backgroundColor: other.backgroundColor,
color: other.color,
counterIncrement: other.counterIncrement,
counterReset: other.counterReset,
direction: other.direction,
display: other.display,
fontFamily: other.fontFamily,
fontFamilyFallback: other.fontFamilyFallback,
fontFeatureSettings: other.fontFeatureSettings,
fontSize: other.fontSize,
fontStyle: other.fontStyle,
fontWeight: other.fontWeight,
height: other.height,
lineHeight: other.lineHeight,
letterSpacing: other.letterSpacing,
listStyleImage: other.listStyleImage,
listStyleType: other.listStyleType,
listStylePosition: other.listStylePosition,
padding: padding?.merge(other.padding) ?? other.padding,
margin: margin?.merge(other.margin) ?? other.margin,
marker: other.marker,
textAlign: other.textAlign,
textDecoration: other.textDecoration,
textDecorationColor: other.textDecorationColor,
textDecorationStyle: other.textDecorationStyle,
textDecorationThickness: other.textDecorationThickness,
textShadow: other.textShadow,
verticalAlign: other.verticalAlign,
whiteSpace: other.whiteSpace,
width: other.width,
wordSpacing: other.wordSpacing,
before: other.before,
after: other.after,
border: border?.merge(other.border) ?? other.border,
alignment: other.alignment,
maxLines: other.maxLines,
textOverflow: other.textOverflow,
textTransform: other.textTransform,
);
}