merge method

Style merge(
  1. Style other
)

Implementation

Style merge(Style other) {
  return copyWith(
    backgroundColor: other.backgroundColor,
    color: other.color,
    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,
    listStyleType: other.listStyleType,
    listStylePosition: other.listStylePosition,
    padding: other.padding,
    //TODO merge EdgeInsets
    margin: other.margin,
    //TODO merge EdgeInsets
    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: other.border,
    //TODO merge border
    alignment: other.alignment,
    markerContent: other.markerContent,
    maxLines: other.maxLines,
    textOverflow: other.textOverflow,
    textTransform: other.textTransform,
  );
}