destroyEngine method
void
destroyEngine()
Implementation
void destroyEngine() {
_currentState = EngineState.destroyed;
_engineContext?.renderContext.forEachInstance(destroyInstance);
_eventListenerList.clear();
_engineContext?.destroyBridge((res) {
_engineContext?.destroy(false);
}, false);
_globalConfigs.destroy();
}