applyToTextStyle static method
Applies color to a TextStyle
Implementation
static TextStyle applyToTextStyle(BuildContext context, TwStyle style, TextStyle? baseStyle) {
final color = resolve(context, style);
if (color == null) {
return baseStyle ?? const TextStyle();
}
return (baseStyle ?? const TextStyle()).copyWith(color: color);
}