dispose method

void dispose()

Releases all internal native resources.

Implementation

void dispose() {
  _checkStatus();
  _invalid = true;
  try {
    _checkError(_nativeSPIclose(_spiHandle));
  } finally {
    _nativeSPIfree(_spiHandle);
    if (_nativePath != null) {
      malloc.free(_nativePath!);
    }
  }
}