Wallet.fromMnemonic constructor

Wallet.fromMnemonic(
  1. String mnemonic, [
  2. String? path
])

Create an instance from a mnemonic phrase.

If path is not specified, the Ethereum default path is used (i.e. m/44'/60'/0'/0/0).

Implementation

factory Wallet.fromMnemonic(String mnemonic, [String? path]) =>
    Wallet._(_WalletImpl.fromMnemonic(mnemonic, path));