-
-
Save boeledi/b8afa77f2afd438120a7ae618acbc083 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stream<String> get confirmPassword => _passwordConfirmController.stream.transform(validatePassword) | |
.doOnData((String c){ | |
// If the password is accepted (after validation of the rules) | |
// we need to ensure both password and retyped password match | |
if (0 != _passwordController.value.compareTo(c)){ | |
// If they do not match, add an error | |
_passwordConfirmController.addError("No Match"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment