close method

Future<void> close()

断开连接

Implementation

Future<void> close() async {
  await FlutterSocket.connectColse();
  _stream.cancel();
}