validateMnemonic function

bool validateMnemonic(
  1. String mnemonic
)

Implementation

bool validateMnemonic(String mnemonic) {
  try {
    mnemonicToEntropy(mnemonic);
  } catch (e) {
    return false;
  }
  return true;
}