getWord method

String getWord(
  1. int index
)

Get the word at the specified index.

Implementation

String getWord(int index) {
  try {
    return words[index];
  } on RangeError {
    throw MnemonicException('Word not found in word list.');
  }
}