MnemonicIndex.create constructor
MnemonicIndex.create(
- int m
returns an Error::MnemonicOutOfBound
if the given value does not fit the valid values.
Implementation
factory MnemonicIndex.create(int m) {
if (m < MAX_MNEMONIC_VALUE) {
return MnemonicIndex(m);
} else {
throw MnemonicOutOfBounds('Given value does not fit the valid values');
}
}