where_not_null 1.0.1 where_not_null: ^1.0.1 copied to clipboard
A single extension on Iterable<T?> to convert it to Iterable<T>
example/where_not_null_example.dart
import 'package:where_not_null/where_not_null.dart';
void main() {
print(<int?>[1, 2, null, 4, null].whereNotNull().reduce((a, b) => a + b));
}