sendEvent method
Implementation
void sendEvent(String event, Object params) {
final dispatcher = _engineContext?.moduleManager
.getJavaScriptModule(enumValueToString(JavaScriptModuleType.EventDispatcher));
if (dispatcher is EventDispatcher) {
dispatcher.receiveNativeEvent(event, params);
}
}