sendRootEvent method

Future sendRootEvent(
  1. int rootId,
  2. int id,
  3. String event,
  4. Object params,
)

dispatch root event, such as frameUpdate

Implementation

Future<dynamic> sendRootEvent(
  int rootId,
  int id,
  String event,
  Object params,
) async {
  if (!_isBridgeInit) {
    return false;
  }
  await VoltronRenderApi.callNativeEvent(
    _renderContext.renderManager.nativeRenderManagerId,
    rootId,
    id,
    event,
    false,
    false,
    params.toOriginObject(),
  );
}