isReachable static method

bool isReachable()

Returns whether the dynamic library is reachable in the default locations for the current application or in the WASM_RUN_DART_DYNAMIC_LIBRARY environment variable.

Implementation

static bool isReachable() {
  if (_isWeb || _wrapper != null) return true;
  try {
    createLibraryImpl();
    return true;
  } catch (_) {
    return false;
  }
}