close method

  1. @override
void close()
override

Closes the Request and cleans up any resources associated with it.

Implementation

@override
void close() {
  _isClosed = true;
  for (var xhr in _xhrs) {
    xhr.abort();
  }
  _xhrs.clear();
}