merge method

Typography merge(
  1. Typography? typography
)

Copy this with a new typography

Implementation

Typography merge(Typography? typography) {
  if (typography == null) return this;
  return Typography.raw(
    display: typography.display ?? display,
    titleLarge: typography.titleLarge ?? titleLarge,
    title: typography.title ?? title,
    subtitle: typography.subtitle ?? subtitle,
    bodyLarge: typography.bodyLarge ?? bodyLarge,
    bodyStrong: typography.bodyStrong ?? bodyStrong,
    body: typography.body ?? body,
    caption: typography.caption ?? caption,
  );
}