removeWhitespace static method

String removeWhitespace(
  1. String text
)

Remove all whitespace from string

text - The text to process Returns text without whitespace

Implementation

static String removeWhitespace(String text) {
  return text.replaceAll(RegExp(r'\s+'), '');
}