countInProgress function

int countInProgress(
  1. Map<String, String> topicIdToMastery
)

Number of topics with any progress (anything other than 'unstarted' and non-'mastery').

Implementation

int countInProgress(Map<String, String> topicIdToMastery) => topicIdToMastery
    .values
    .where((m) => m != 'unstarted' && m != 'mastery')
    .length;