close abstract method

Future<RawSocket> close()

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.READ_CLOSED event.

Source

Future<RawSocket> close();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/RawSocket/close.html