setResult method

void setResult(
  1. Response result
)

Sets the final result of the action stream and completes the future.

Implementation

void setResult(Response result) {
  _done = true;
  _result = result;
  if (_completer?.isCompleted == false) {
    _completer!.complete(result);
  }
}