removeBetweenSpaceMayNull static method
移除str
两端的(空格|制表符\t),
如果str
为null
或移除空白符号后得到空字符串
则返回null
Implementation
static String? removeBetweenSpaceMayNull(
String? str, {
bool removeLine = true,
}) {
if (null == str) {
return null;
}
final result = removeBetweenSpace(str, removeLine: removeLine);
if (result.isEmpty) {
return null;
}
return result;
}