trimWhitespace method

String trimWhitespace()

Removes all leading and trailing whitespace.

Alias for trim but provided for consistency.

Implementation

String trimWhitespace() => trim();