sendRootEvent method
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(),
);
}