sendGestureEvent method

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

Dispatch UI component event, such as click, doubleClick.

Implementation

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