nitroFree method

void nitroFree(
  1. int ptr
)

The module's <lib>_nitro_free — frees native-owned returns (strings, framed buffers) that crossed with ownership transfer to Dart.

Implementation

void nitroFree(int ptr) {
  if (ptr != 0) call('${libName}_nitro_free', [ptr.toJS]);
}