close method

void close()

Release the native handle. Safe to call multiple times.

Implementation

void close() {
  if (!_closed) {
    _ffi.dropHandle(_handle);
    _closed = true;
  }
}