updatePw method

Future<void> updatePw({
  1. String? oldPw,
  2. String? newPw,
})

Implementation

Future<void> updatePw({String? oldPw, String? newPw}) async {
  if (oldPw != newPw) {
    await updateCipher(oldPw: oldPw, newPw: newPw);
  }
}