requireNoNulls property
Iterable<E>
requireNoNulls
Returns an original collection containing all the non-null elements, throwing an ArgumentError if there are any null elements.
Implementation
Iterable<E> get requireNoNulls {
for (final element in this) {
if (element == null) throw ArgumentError.notNull('element');
}
return cast<E>();
}