destroy method - Socket class - dart:io library (original) (raw)
destroy abstract method
void destroy()
Destroys 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 Socketfor sending data.
Implementation
void destroy();