destroy abstract method

void destroy()

Destroy the socket in both directions. Calling destroy will make the send a close event on the stream and will no longer react on data being piped to it.

Call close(inherited from IOSink) to only close the Socket for sending data.

Source

void destroy();

© 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/Socket/destroy.html