Source
void addTraceCallback(ResponseTraceCallback _traceCallback) { _subscription.addTraceCallback(_traceCallback); _responses.forEach((int rid, Response response){ _traceCallback(response.getTraceData()); }); if (_traceCallbacks == null) _traceCallbacks = new List<ResponseTraceCallback>(); _traceCallbacks.add(_traceCallback); }