nextStepText static method

String nextStepText(
  1. String mastery
)

Implementation

static String nextStepText(String mastery) {
  return switch (mastery) {
    'unstarted' => 'Read the lesson to reach Awareness',
    'awareness' => 'Use Socratic Dialogue or Explain to reach Understanding',
    'understanding' =>
      'Take a Quiz or solve Practice Problems to reach Application',
    'application' =>
      'Try Code Review or teach the Confused Student to reach Evaluation',
    'evaluation' => 'Continue reviewing and teaching to reach Mastery',
    'mastery' => 'Topic mastered! Keep reviewing to maintain it.',
    _ => 'Read the lesson to get started',
  };
}