where_not_null 1.0.2 copy "where_not_null: ^1.0.2" to clipboard
where_not_null: ^1.0.2 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));
}
0
likes
160
points
45
downloads

Publisher

verified publisherampless.chrissx.de

Weekly Downloads

A single extension on Iterable<T?> to convert it to Iterable<T>

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on where_not_null