compressWidgets method

List<Widget> compressWidgets(
  1. List<Widget> widgets
)

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,
      ),
    );