How to pass category data to get custom fields data from an API

How I pass category data to get custom fields data against that category from an API. Flutter

this is the data fetch function
func