BaseTextStyle.withStyle constructor

BaseTextStyle.withStyle(
  1. TextStyle? style
)

Implementation

BaseTextStyle.withStyle(TextStyle? style) {
  if (style == null) {
    return;
  }
  color = style.color ?? color;
  fontSize = style.fontSize ?? fontSize;
  fontWeight = style.fontWeight ?? fontWeight;
  decoration = style.decoration ?? decoration;
  height = style.height ?? height;
  textBaseline = style.textBaseline ?? textBaseline;
}