isClosed method

bool isClosed()

Implementation

bool isClosed() {
  try {
    _naniDict[_socket].address;
  } catch (e) {
    if (e == SocketException) {
      return true;
    }
  }
  return false;
}