Popupmenu does not have create method?

PopupMenu

here old version had “create” on PopupMenu but new version does not have it? how to create PopupMenu in new version? please help

I found the answer myself… open itself is handling the menu creation now…

Yes, we had a breaking change a while ago.