mergeWith method

FontOptions mergeWith(
  1. PartialFontOptions? value
)

Merge a font difference into current font.

Implementation

FontOptions mergeWith(PartialFontOptions? value) {
  if (value == null) return this;
  return copyWith(
    fontFamily: value.fontFamily,
    fontWeight: value.fontWeight,
    fontShape: value.fontShape,
  );
}