mergeCourierTextStyle function

TextStyle? mergeCourierTextStyle(
  1. TextStyle? base,
  2. TextStyle? style
)

style on top of base, so a style that leaves fields out keeps the default's values for them instead of falling back to the surrounding text style.

Implementation

TextStyle? mergeCourierTextStyle(TextStyle? base, TextStyle? style) {
  if (style == null) return base;
  return base?.merge(style) ?? style;
}