styleSubtitle function
TextStyle
styleSubtitle({
- Color? color,
- FontWeight? fontWeight,
- double? size,
- double height = 1.2,
Implementation
TextStyle styleSubtitle({
Color? color,
FontWeight? fontWeight,
double? size,
double height = 1.2,
}) {
final Color effectiveColor = color ?? COLOR_TEXT;
return getStyleCustom(
size ?? TEXT_SUBTITLE_SIZE,
fontWeight ?? WEIGHT_BOLD,
effectiveColor,
height: height,
);
}