overrideError method

void overrideError(
  1. T result
)

Overrides this asynchronous error result with specified result.

Implementation

void overrideError(T result) {
  _isReplaced = true;
  _replacedResult = result;
}