validateMnemonicPhrase function

void validateMnemonicPhrase(
  1. String mnemonic
)

Implementation

void validateMnemonicPhrase(String mnemonic) {
  // tries to construct mnemonic from sentence and throws exceptions
  // in case of any errors
  Mnemonic.fromSentence(mnemonic, Language.english);
}