applyToTextStyle static method
Applies tracking styling to a TextStyle using copyWith
Implementation
static TextStyle applyToTextStyle(
BuildContext context,
FlyStyle style,
TextStyle? baseStyle,
) {
final trackingValue = resolve(context, style);
if (trackingValue == null) {
return baseStyle ?? const TextStyle();
}
return (baseStyle ?? const TextStyle()).copyWith(
letterSpacing: trackingValue,
);
}