calculateSelectedHours static method

int calculateSelectedHours(
  1. Map<String, Set<int>> selectedSlots
)

Implementation

static int calculateSelectedHours(Map<String, Set<int>> selectedSlots) {
  int total = 0;
  for (var slots in selectedSlots.values) {
    total += slots.length;
  }
  return total;
}