count total value

List addRxM = [];

int totalRxM = 0;
for (int x = 0; x < foundUsers.length; x++) {

    addRxM.add(foundUsers[x].totalMorningRX); 

    totalRxM = addRxM.reduce((a, b) => a + b);

}


Comments