removeWhitespaces static method

String removeWhitespaces(
  1. String s
)

Removes all whitespaces from s (using the "\s" regexp).

Implementation

static String removeWhitespaces(String s) {
	return s.replaceAll(RegExp(r"\s+"), "");
}