updateStream method
void
updateStream(})
update data for the responder stream
Implementation
void updateStream(
List updates, {
List? columns,
String streamStatus = StreamStatus.open,
Map? meta,
bool autoSendColumns = true,
}) {
if (meta != null && meta['mode'] == 'refresh') {
pendingData.length = 0;
}
if (!_hasSentColumns) {
if (columns == null &&
autoSendColumns &&
node != null &&
node?.configs[r'$columns'] is List) {
columns = node!.configs[r'$columns'] as List?;
}
}
if (columns != null) {
_hasSentColumns = true;
}
pendingData.add(
_InvokeResponseUpdate(streamStatus, updates, columns, meta),
);
prepareSending();
}