validateRecoveryWordCount function

void validateRecoveryWordCount(
  1. int wordCount
)

Validates that the word count matches the expected count for recovery Throws ArgumentError if the count is invalid

Implementation

void validateRecoveryWordCount(int wordCount) {
  if (wordCount != RecoveryConstants.totalWordCount) {
    throw ArgumentError(
      'Expected ${RecoveryConstants.totalWordCount} words, got $wordCount',
    );
  }
}