Hi I have an arrayList which stores values amount, description and code. I have a function I’m using to get the sum of my amount field which I’m using to do some validations. Below is the sample which gives me the sum irregardless of the code:
var taxableAmountTot = isics.map<int>((e) => int.parse(e.taxableAmount)).reduce((a,b)=>a+b);
What I want is to get the sum based on the code in my arrayList… Anyone with a quick win on how i can go about this?