merge method

DefaultStyles merge(
  1. DefaultStyles other
)

Implementation

DefaultStyles merge(DefaultStyles other) {
  return DefaultStyles(
    h1: other.h1 ?? h1,
    h2: other.h2 ?? h2,
    h3: other.h3 ?? h3,
    h4: other.h4 ?? h4,
    h5: other.h5 ?? h5,
    h6: other.h6 ?? h6,
    paragraph: other.paragraph ?? paragraph,
    bold: other.bold ?? bold,
    subscript: other.subscript ?? subscript,
    superscript: other.superscript ?? superscript,
    italic: other.italic ?? italic,
    small: other.small ?? small,
    underline: other.underline ?? underline,
    strikeThrough: other.strikeThrough ?? strikeThrough,
    inlineCode: other.inlineCode ?? inlineCode,
    link: other.link ?? link,
    color: other.color ?? color,
    placeHolder: other.placeHolder ?? placeHolder,
    lists: other.lists ?? lists,
    quote: other.quote ?? quote,
    code: other.code ?? code,
    indent: other.indent ?? indent,
    align: other.align ?? align,
    leading: other.leading ?? leading,
    sizeSmall: other.sizeSmall ?? sizeSmall,
    sizeLarge: other.sizeLarge ?? sizeLarge,
    sizeHuge: other.sizeHuge ?? sizeHuge,
  );
}