sendEvent method

void sendEvent(
  1. String event,
  2. Object params
)

Implementation

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