loadLib static method

Never loadLib(
  1. String libName
)

Native-only entry point. On web, module loading is asynchronous — see loadWebModule / the generated ensure<Class>Ready().

Implementation

static Never loadLib(String libName) {
  throw UnsupportedError(
    '$libName: NitroRuntime.loadLib is native-only. On web, await the '
    "generated ensure<Class>Ready() (or NitroRuntime.loadWebModule) first — "
    'the FFI implementation class does not exist in a web build.',
  );
}