Wallet.fromFile constructor

Wallet.fromFile(
  1. DatabaseFactory databaseFactory,
  2. List<PeerNetwork> networks,
  3. FileSystem fileSystem,
  4. String filename,
  5. Seed seed,
  6. [CruzawlPreferences preferences,
  7. StringCallback debugPrint,
  8. WalletCallback loaded]
)

Load arbitrary Wallet of arbitrary Currency.

Implementation

Wallet.fromFile(
    sembast.DatabaseFactory databaseFactory,
    List<PeerNetwork> networks,
    FileSystem fileSystem,
    String filename,
    Seed seed,
    [this.preferences,
    this.debugPrint,
    WalletCallback loaded])
    : super('loading', loadingCurrency, seed) {
  _openWalletStorage(databaseFactory, fileSystem, filename, false, loaded,
      null, null, networks);
}