sendComponentEvent method
Dispatch UI component event, such as onLayout, onScroll, onInitialListReady.
Implementation
Future<dynamic> sendComponentEvent(
int rootId,
int id,
String event,
Object params,
) async {
if (!_isBridgeInit) {
return false;
}
await VoltronRenderApi.callNativeEvent(
_renderContext.renderManager.nativeRenderManagerId,
rootId,
id,
event.toLowerCase(),
false,
false,
params.toOriginObject(),
);
}