charCountWithoutSpaces method
Returns the number of non-whitespace characters in the string.
Implementation
int charCountWithoutSpaces() {
return replaceAll(RegExp(r'\s+'), '').length;
}
Returns the number of non-whitespace characters in the string.
int charCountWithoutSpaces() {
return replaceAll(RegExp(r'\s+'), '').length;
}