getTextStyle property

TextStyle get getTextStyle

Base TextStyle with color, size, height, and weight applied.

Implementation

TextStyle get getTextStyle {
  final base = textStyle ?? const TextStyle();
  return base.copyWith(
    color: color ?? base.color,
    fontSize: size ?? base.fontSize,
    height: height ?? base.height,
    fontWeight: fontWeight ?? base.fontWeight,
  );
}