Wallet.fromMnemonic constructor

Wallet.fromMnemonic(
  1. String mnemonic, {
  2. String? path,
  3. Wordlist? wordlist,
})

Implementation

factory Wallet.fromMnemonic(
  String mnemonic, {
  String? path,
  Wordlist? wordlist,
}) {
  path ??= defaultPath;
  return Wallet.fromHDNode(HDNode.fromMnemonic(mnemonic).derivePath(path));
}