fail method

void fail(
  1. int index,
  2. Object error, [
  3. StackTrace? stackTrace
])

Fails request index.

Implementation

void fail(int index, Object error, [StackTrace? stackTrace]) =>
    _pending[index].completeError(error, stackTrace);