close method
      
void
close()
      
     
    
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
It's important to close all clients when it's done being used; failing to do so can cause the Dart process to hang.
Implementation
void close() {
  _protocol.close();
}