removeAllSpace static method

String removeAllSpace(
  1. String str
)

移除所有空白符号

Implementation

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