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