changePassword method

Future<void> changePassword(
  1. String currentPassword,
  2. String newPassword
)

Changes the password of the signed-in account.

Implementation

Future<void> changePassword(
  String currentPassword,
  String newPassword,
) async {
  await _api.call(
    CloudOperations.changePassword,
    body: {'currentPassword': currentPassword, 'password': newPassword},
  );
}