merge method

Implementation

MacosTextFieldThemeData merge(MacosTextFieldThemeData? other) {
  if (other == null) return this;
  return this.copyWith(
    decoration: other.decoration,
    focusedDecoration: other.focusedDecoration,
    padding: other.padding,
    placeholderStyle: placeholderStyle == null
        ? other.placeholderStyle
        : placeholderStyle!.merge(other.placeholderStyle),
    style: style == null ? other.style : style!.merge(other.style),
    strutStyle: other.strutStyle,
    textAlign: other.textAlign,
    textAlignVertical: other.textAlignVertical,
    obscuringCharacter: other.obscuringCharacter,
    smartDashesType: other.smartDashesType,
    smartQuotesType: other.smartQuotesType,
    cursorWidth: other.cursorWidth,
    cursorHeight: other.cursorHeight,
    cursorRadius: other.cursorRadius,
    scrollPadding: other.scrollPadding,
    cursorColor: other.cursorColor,
    selectionColor: other.selectionColor,
    selectionHeightStyle: other.selectionHeightStyle,
    selectionWidthStyle: other.selectionWidthStyle,
  );
}