Returns the result of collapsing consecutive whitespace, or null if empty. Alias for removeConsecutiveSpaces.
null
removeConsecutiveSpaces
@useResult String? compressSpaces({bool trim = true}) => removeConsecutiveSpaces(trim: trim);