validateMnemonic function

bool validateMnemonic(
  1. String mnemonic, {
  2. String language = _defaultLanguage,
})

Implementation

bool validateMnemonic(String mnemonic,{String language=_defaultLanguage}) {
  try {
    mnemonicToEntropy(mnemonic,language: language);
  } catch (e) {
    return false;
  }
  return true;
}