where_not_null 1.0.1 copy "where_not_null: ^1.0.1" to clipboard
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));
}
0
likes
150
pub points
2%
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