StreamedResults constructor
StreamedResults(})
Implementation
factory StreamedResults(int? insertId, int? affectedRows, List<Field> fields, {Stream<Row>? stream = null}) {
if (stream != null) {
var newStream = stream.transform(StreamTransformer.fromHandlers(handleDone: (EventSink<Row> sink) {
sink.close();
}));
return StreamedResults._fromStream(insertId, affectedRows, fields, newStream);
} else {
var newStream = Stream.fromIterable(<Row>[]);
return StreamedResults._fromStream(insertId, affectedRows, fields, newStream);
}
}