getContextualMessage static method
Provides contextual motivation based on development phase
Implementation
static String getContextualMessage({
required DevelopmentPhase phase,
bool isChallenging = false,
}) {
if (isChallenging) {
return _challengeMessages[Random().nextInt(_challengeMessages.length)];
}
return phaseMessages[phase]?[Random().nextInt(
phaseMessages[phase]!.length,
)] ??
randomMessage;
}