getWordIdx method
Retrieves the index of a word within the list.
Throws a MnemonicException if the word is not found in the list.
Implementation
int getWordIdx(String word) {
final index = _idxToWords.indexOf(word);
if (index < 0) {
throw MnemonicException("Invalid mnemonic index.");
}
return index;
}