dispose method

void dispose()

Stops the runtime and releases its native handle.

Implementation

void dispose() {
  if (_disposed) {
    return;
  }
  if (isInitialized) {
    _shutdown(_handle);
  }
  _destroy(_handle);
  _disposed = true;
}