where_not_null 1.0.0 copy "where_not_null: ^1.0.0" to clipboard
where_not_null: ^1.0.0 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
130
pub points
0%
popularity

Publisher

verified publisherampless.chrissx.de

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on where_not_null