Add a `whereNull()` or a `nullsCount` to iterable extension
ValentinVignal opened this issue · comments
Valentin Vignal commented
It would be useful to know the number of null
in an iterable. For now, I'm creating my own.
extension on Iterable {
int nullsCount => where((element) => element == null).length;
}
Philip commented
Feels like this functionality is very specific to your projects business logic and not so much a general one.