streamPartialResults method

void streamPartialResults(
  1. dynamic partialResults,
  2. bool complete
)

Implementation

void streamPartialResults(dynamic partialResults, bool complete) {
  if (_controller != null) {
    if (complete) {
      _controller!
        ..add(null)
        ..close();
      _controller = null;
    } else {
      _controller!.add(partialResults);
    }
  }
}