countNotEmpty method
return counter of empty elements in the iterable does not count the null values
Implementation
int countNotEmpty() => count((e) => e.trim().isNotEmpty);
return counter of empty elements in the iterable does not count the null values
int countNotEmpty() => count((e) => e.trim().isNotEmpty);