toStream method Null safety

Stream<T> toStream()

Implementation

Stream<T> toStream() {
  return Stream.fromIterable(this);
}