encrypt method

Future<String> encrypt(
  1. String password, [
  2. void progressCallback(
    1. double progress
    )?
])

Encrypt the wallet using password returning a Future which resolves to a JSON wallet.

Implementation

Future<String> encrypt(String password,
        [void Function(double progress)? progressCallback]) =>
    promiseToFuture<String>(
      impl.encrypt(
        password,
        null,
        progressCallback != null ? allowInterop(progressCallback) : null,
      ),
    );