changePassword method

Future<Map?> changePassword(
  1. String? pubKey,
  2. dynamic passOld,
  3. dynamic passNew
)

change password of account

Implementation

Future<Map?> changePassword(String? pubKey, passOld, passNew) async {
  final res = await serviceRoot.webView!.evalJavascript(
      'keyring.changePassword("$pubKey", "$passOld", "$passNew")');
  return res;
}