toggleShowPassword method

void toggleShowPassword()

Toggles the visibility of the password.

Implementation

void toggleShowPassword() {
  isShowPassword = !isShowPassword;
}