logProviderState static method
Log provider state
Implementation
static void logProviderState(
String providerName,
dynamic state,
) {
debugPrint('📊 PROVIDER STATE - $providerName:');
if (state is List<HighlightedWord>) {
debugPrint(' Type: List<HighlightedWord>');
debugPrint(' Length: ${state.length}');
int correct =
state.where((w) => w.status == WordStatus.recitedCorrect).length;
debugPrint(' Recited Correct: $correct');
} else if (state is int) {
debugPrint(' Type: int');
debugPrint(' Value: $state');
} else {
debugPrint(' Type: ${state.runtimeType}');
debugPrint(' Value: $state');
}
}