checkMnemonicValid method
check mnemonic valid.
Implementation
Future<bool> checkMnemonicValid(String mnemonic) async {
final isApiSupport = (await serviceRoot.webView!.evalJavascript(
'keyring.checkMnemonicValid ? {}:null',
wrapPromise: false)) !=
null;
final bool res = isApiSupport
? (await serviceRoot.webView!
.evalJavascript('keyring.checkMnemonicValid("$mnemonic")'))
: true;
return res;
}