fromValue static method

Bip39WordsNum? fromValue(
  1. int value
)

Retrieve an instance of Bip39WordsNum based on the provided numeric value.

Implementation

static Bip39WordsNum? fromValue(int value) {
  try {
    return values.firstWhere((element) => element.value == value);
  } on StateError {
    return null;
  }
}