removeAllSpaceMayNull static method
移除str
所有空白符号,如果str为null
或移除空白符号后是空字符串
则返回null
Implementation
static String? removeAllSpaceMayNull(String? str) {
if (null == str || str.isEmpty) {
return null;
}
final result = removeAllSpace(str);
if (result.isEmpty) {
return null;
}
return result;
}