removeAllSpace static method

String removeAllSpace(
  1. String str
)

去除所有空格 Remove all spaces

Implementation

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