close method

  1. @override
dynamic close()
override

Called when you want to close a connection

Implementation

@override
close() {
  _socket?.close();
  _socket = null;
}