submit method

Future<void> submit()

Validates the form, then changes the password.

Implementation

Future<void> submit() async {
  if (!validateForm()) return;
  await flow.submit(
    currentPassword: currentPasswordController.text,
    newPassword: newPasswordController.text,
  );
}