buildHighlightMaskTextSpan static method
Implementation
static TextSpan buildHighlightMaskTextSpan(TextSpan source) {
final style = source.style;
return TextSpan(
text: source.text,
children: source.children?.map((child) {
return child is TextSpan ? buildHighlightMaskTextSpan(child) : child;
}).toList(),
style: style?.copyWith(
color: (style.color ?? const Color(0xFFFFFFFF)).withValues(alpha: 1.0),
),
);
}