compressSpaces method
Returns the result of collapsing consecutive whitespace, or null if
empty. Alias for removeConsecutiveSpaces.
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
String? compressSpaces({bool trim = true}) => removeConsecutiveSpaces(trim: trim);