closeSync abstract method Null safety
Closes the RawSynchronousSocket.
Once closeSync has been called, attempting to call readSync, readIntoSync, writeFromSync, remoteAddress, and remotePort will cause a SocketException to be thrown.
Implementation
void closeSync();