removeAllWhitespace method

String removeAllWhitespace(
  1. String value
)

Remove all whitespace inside string Example: your name => yourname

Implementation

static String removeAllWhitespace(String value) {
  if (isNullOrBlank(value)) {
    return null;
  }

  return value.replaceAll(' ', '');
}