MnemonicDecoderBase constructor
MnemonicDecoderBase({
- MnemonicLanguages? language,
- required MnemonicWordsListFinderBase wordsListFinder,
- required MnemonicWordsListGetterBase wordsListGetter,
Creates a MnemonicDecoderBase instance with optional language and required components.
The language
parameter specifies the language to use for decoding. If null, the language
will be determined using the wordsListFinder
. The wordsListFinder
is used to find
the appropriate language and word list.
The wordsListGetter
parameter is used to retrieve word lists by language.
Implementation
MnemonicDecoderBase({
this.language,
required this.wordsListFinder,
required MnemonicWordsListGetterBase wordsListGetter,
}) : wordsList =
(language != null ? wordsListGetter.getByLanguage(language) : null);