isValid method

bool isValid([
  1. String? passphrase
])

Implementation

bool isValid([String? passphrase]) {
  passphrase = passphrase ?? '';
  bool isValid;
  try {
    this.mnemonic2Seed(passphrase);
    isValid = true;
  } catch (err) {
    isValid = false;
  }
  return isValid;
}