merge method

TextTheme merge(
  1. TextTheme? other
)

Merge text theme

Implementation

TextTheme merge(TextTheme? other) {
  if (other == null) return this;
  return copyWith(
    body: body.merge(other.body),
    title: title.merge(other.title),
    headlineBold: headlineBold.merge(other.headlineBold),
    headline: headline.merge(other.headline),
    bodyBold: bodyBold.merge(other.bodyBold),
    footnoteBold: footnoteBold.merge(other.footnoteBold),
    footnote: footnote.merge(other.footnote),
    captionBold: captionBold.merge(other.captionBold),
  );
}