merge method

Returns this theme with non-null values from other overriding it.

Implementation

MarkdownEditorThemeData merge(MarkdownEditorThemeData? other) {
  if (other == null) return this;
  return copyWith(
    decoration: other.decoration,
    sourceDecoration: other.sourceDecoration,
    previewDecoration: other.previewDecoration,
    sourceTextStyle: other.sourceTextStyle,
    toolbarColor: other.toolbarColor,
    toolbarIconColor: other.toolbarIconColor,
    toolbarActiveIconColor: other.toolbarActiveIconColor,
    toolbarActiveBackgroundColor: other.toolbarActiveBackgroundColor,
    dividerColor: other.dividerColor,
    searchBarColor: other.searchBarColor,
    suggestionPanelColor: other.suggestionPanelColor,
    suggestionSelectedBackgroundColor:
        other.suggestionSelectedBackgroundColor,
    selectionColor: other.selectionColor,
    dropTargetColor: other.dropTargetColor,
    dropTargetBorderColor: other.dropTargetBorderColor,
    blockBorderColor: other.blockBorderColor,
    blockHeaderColor: other.blockHeaderColor,
    blockHeaderTextStyle: other.blockHeaderTextStyle,
    tableBorderColor: other.tableBorderColor,
    tableHeaderColor: other.tableHeaderColor,
    tableSelectionColor: other.tableSelectionColor,
    tableActiveBorderColor: other.tableActiveBorderColor,
    editorBorderRadius: other.editorBorderRadius,
    toolbarButtonRadius: other.toolbarButtonRadius,
    blockBorderRadius: other.blockBorderRadius,
    contentPadding: other.contentPadding,
    sourcePadding: other.sourcePadding,
    previewPadding: other.previewPadding,
    blockPadding: other.blockPadding,
    tablePadding: other.tablePadding,
  );
}