close method

  1. @override
void close()
override

Closes the client.

This terminates all active requests.

Implementation

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