compressSpaces method

  1. @useResult
String? compressSpaces({
  1. bool trim = true,
})

Returns the result of collapsing consecutive whitespace, or null if empty. Alias for removeConsecutiveSpaces.

Implementation

@useResult
String? compressSpaces({bool trim = true}) => removeConsecutiveSpaces(trim: trim);