close method

Future<void> close()

Implementation

Future<void> close() async {
  _socket.shutdown(SocketDirection.both);
  _socket.close();
  _onDone();
}