dispose method
Implementation
@override
void dispose() {
markRuntimeDisposed(this);
// When a Dart function called from JavaScript disposes the runtime,
// JavaScript is still running: free the engine once the stack has
// unwound.
if (_channelDepth > 0) {
scheduleMicrotask(_release);
} else {
_release();
}
}