compressWidgets method
Merges the RichText elements of widgets
while it is possible.
Implementation
List<Widget> compressWidgets(List<Widget> widgets) => mergeRichText(
widgets,
richTextBuilder: (span, textAlign) => createRichText(
span,
textAlign: textAlign,
),
);