addAll method
Adds all elements from the given iterable to the stream being built.
Throws NoGuaranteeException if the builder has already been built.
Example
builder.addAll(['Hello', 'World', '!']);
Implementation
StreamBuilder<T> addAll(Iterable<T> elements) {
if (_built) {
throw NoGuaranteeException('StreamBuilder has already been built');
}
_elements.addAll(elements);
return this;
}