fromWords static method

MnemonicLength fromWords(
  1. int wordCount
)

Implementation

static MnemonicLength fromWords(int wordCount) {
  try {
    return values.firstWhere((e) => e.words == wordCount);
  } catch (e) {
    throw MnemonicUnexpectedSentenceLengthException(wordCount);
  }
}