countMastered function
Number of topics whose mastery is 'mastery'.
Implementation
int countMastered(Map<String, String> topicIdToMastery) =>
topicIdToMastery.values.where((m) => m == 'mastery').length;
Number of topics whose mastery is 'mastery'.
int countMastered(Map<String, String> topicIdToMastery) =>
topicIdToMastery.values.where((m) => m == 'mastery').length;