applyPendingStyles static method
Applies the document's pending styles to an existing fragment in-place.
Implementation
static void applyPendingStyles(FluentDocument document, Fragment frag) {
frag
..fontFamily = document.pendingFontFamily
..fontSize = document.pendingFontSize
..styles = List.from(document.pendingStyles)
..color = document.pendingColor
..highlightColor = document.pendingHighlightColor;
}