dispose method

void dispose()

Manually dispose the native object. Note: The Finalizer must support detachment if we want to do this safely, but NativeFinalizer automatically handles detached objects if we passed detach: this.

Implementation

void dispose() {
   // This base class doesn't enforce how to free,
   // but subclasses can implement strict dispose if they want deterministic cleanup.
}