How do I achieve lv_list_get_btn_index() in Version 8.0

I’m migrating from LVGL 7 to 8.0
I’m unable to figure out how to obtain the index of the button clicked in a list.
In v7 I used:
lv_list_get_btn_index()

Thx

lv_obj_get_child_id(list_btn) should work.