onSelectionChanged method

void onSelectionChanged(
  1. int selStart,
  2. int selEnd
)

Implementation

void onSelectionChanged(int selStart, int selEnd) {
  if (selectionChangeEventEnable) {
    var selection = VoltronMap();
    selection.push("start", selStart);
    selection.push("end", selEnd);
    var paramsMap = VoltronMap();
    paramsMap.push("selection", selection);
    context.renderBridgeManager.sendComponentEvent(
      rootId,
      id,
      TextInputController.kEventOnSelectionChange,
      paramsMap,
    );
  }
}