I have an API call that returns a list of objects, with each object having the following fields: id
, name
and status
. All the name
are used to populate a DropDown. I want to add an action that checks if the selected dropdown value has associated status = inactive
.
So say a user selected 'John' from the dropdown, and the object from the API call that has name = 'John'
also has status = 'active'
. I want to navigate the user to a certain page. However if 'John'
had status = 'inactive'
then I want to navigate the user to a different page.
FlutterFlow's conditional check seems to only allow me to take the widget state itself, but not the associated status of the widget state value. Is there a way to do that without using Custom Functions?