MnemonicWordsList class

A class that represents a list of words used in a mnemonic system.

This class provides methods for working with a list of words, such as retrieving a word's index, obtaining a word by its index, and getting the total number of words.

Example usage:

final wordsList = MnemonicWordsList(['word1', 'word2', 'word3']);
final index = wordsList.getWordIdx('word2');
final word = wordsList.getWordAtIdx(1);
final totalWords = wordsList.length();

Constructors

MnemonicWordsList(List<String> wordsList)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getWordAtIdx(int wordIdx) String
Returns the word located at the specified index.
getWordIdx(String word) int
Retrieves the index of a word within the list.
length() int
Returns the total number of words in the list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited