I have an API response that contains a transactionType field with two possible values: "Income" and "Expense".
I want to display the transactions in my app based on the selected Choice Chip, either showing only "Income" transactions or only "Expense" transactions.
However, I am struggling with how to filter the transactions shown in the ListView based on the selected chip value.
Could someone guide me on how to implement this filtering?