const SocketException.closed()

Source

const SocketException.closed()
    : message = 'Socket has been closed',
      osError = null,
      address = null,
      port = null;