Closes the socket. Returns a Future that completes with this when the underlying connection is completely destroyed.
Calling close will never throw an exception and calling it several times is supported. Calling close can result in a RawSocketEvent.readClosed event.
Future<RawSocket> close();
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/RawSocket/close.html