changePassword abstract method

Future<void> changePassword({
  1. required String newPassword,
  2. String? currentPassword,
  3. bool isExpired = false,
})

If isExpired is true, it changes an expired password (using the expired/first-time login session). Otherwise, it performs a normal password change (from settings) and requires currentPassword.

Implementation

Future<void> changePassword({
  required String newPassword,
  String? currentPassword,
  bool isExpired = false,
});