dispose method
void
dispose()
Destroy the backend and release resources.
Implementation
void dispose() {
if (_handle != null && _handle != nullptr) {
// Call appropriate destroy function based on backend type
_destroyHandle();
_handle = null;
}
_isInitialized = false;
_currentModel = null;
}