isValid method
Determines if the given mnemonic string is valid, optionally with a passphrase.
Implementation
bool isValid(Mnemonic mnemonic, {String password = ""}) {
try {
validate(mnemonic, password: password);
return true;
} catch (e) {
return false;
}
}