Adding all the values in a map in dart

Viewed 9355

How to add all the values of a map to have the total of 14000?

Map<String, int> salary = {
    "user1": 4000,
    "user2": 4000,
    "user3": 3000,
    "user4": 3000,        
  };
1 Answers
Related