Source
void sendTo(InvokeResponse resp) { _resp = resp; _resp.onClose = (r) { close(true); }; if (autoStartSend) { resp.updateStream(getCurrentState(), columns: columns.map((x) { return x.getData(); }).toList(), streamStatus: StreamStatus.open, meta: { "mode": "refresh" }); } }