collapseWhitespace method

B collapseWhitespace()

Normalize the string by collapsing multiple whitespace characters into single spaces.

Implementation

B collapseWhitespace() => wrap((c) => tr.collapseWhitespace(c));