isMnemonicValid static method

bool isMnemonicValid(
  1. String text
)

Wether the given text is a valid mnemonic or not.

 final isValid = Nostr.instance.keysService.isMnemonicValid('your mnemonic');
 print(isValid); // ...

Implementation

static bool isMnemonicValid(String text) {
  return bip39.validateMnemonic(text);
}